File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
clang/lib/StaticAnalyzer/Checkers/WebKit Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 ()) {
You can’t perform that action at this time.
0 commit comments