File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
clang/lib/StaticAnalyzer/Checkers/WebKit Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class RawPtrRefLambdaCapturesChecker
5252 llvm::DenseSet<const ValueDecl *> ProtectedThisDecls;
5353 llvm::DenseSet<const CallExpr *> CallToIgnore;
5454 llvm::DenseSet<const CXXConstructExpr *> ConstructToIgnore;
55- llvm::DenseMap<const VarDecl*, const LambdaExpr*> LambdaOwnerMap;
55+ llvm::DenseMap<const VarDecl *, const LambdaExpr *> LambdaOwnerMap;
5656
5757 QualType ClsType;
5858
@@ -248,8 +248,7 @@ class RawPtrRefLambdaCapturesChecker
248248 }
249249 }
250250 checkParameters (CE, Callee);
251- }
252- else if (auto *CalleeE = CE->getCallee ()) {
251+ } else if (auto *CalleeE = CE->getCallee ()) {
253252 if (auto *DRE = dyn_cast<DeclRefExpr>(CalleeE->IgnoreParenCasts ())) {
254253 if (auto *Callee = dyn_cast_or_null<FunctionDecl>(DRE->getDecl ()))
255254 checkParameters (CE, Callee);
@@ -459,7 +458,7 @@ class RawPtrRefLambdaCapturesChecker
459458
460459 void visitLambdaExpr (const LambdaExpr *L, bool shouldCheckThis,
461460 const QualType T,
462- bool ignoreParamVarDecl = false ) const {
461+ bool ignoreParamVarDecl = false ) const {
463462 if (TFA.isTrivial (L->getBody ()))
464463 return ;
465464 for (const LambdaCapture &C : L->captures ()) {
You can’t perform that action at this time.
0 commit comments