Skip to content

Commit 97deb83

Browse files
committed
Fix formatting.
1 parent 6c6dd96 commit 97deb83

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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()) {

0 commit comments

Comments
 (0)