Skip to content

Commit 5e67df8

Browse files
committed
Fix formatting.
1 parent ee8c60b commit 5e67df8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefLambdaCapturesChecker.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,9 @@ class RawPtrRefLambdaCapturesChecker
132132
if (!isa<NamespaceDecl>(Decl) && !isa<CXXRecordDecl>(Decl))
133133
return false;
134134
auto Name = safeGetName(Decl);
135-
// WTF::switchOn(T, F... f) is a variadic template function and couldn't
136-
// be annotated with NOESCAPE. We hard code it here to workaround that.
135+
// WTF::switchOn(T, F... f) is a variadic template function and
136+
// couldn't be annotated with NOESCAPE. We hard code it here to
137+
// workaround that.
137138
if (Name == "WTF" && PreviousName == "switchOn")
138139
return true;
139140
// Treat every argument of functions in std::ranges as noescape.
@@ -178,7 +179,7 @@ class RawPtrRefLambdaCapturesChecker
178179
return true;
179180
}
180181

181-
void checkParameters(CallExpr* CE, FunctionDecl *Callee) {
182+
void checkParameters(CallExpr *CE, FunctionDecl *Callee) {
182183
unsigned ArgIndex = isa<CXXOperatorCallExpr>(CE);
183184
bool TreatAllArgsAsNoEscape = shouldTreatAllArgAsNoEscape(Callee);
184185
for (auto *Param : Callee->parameters()) {

0 commit comments

Comments
 (0)