Skip to content

Commit 9f32470

Browse files
committed
Fix formatting.
1 parent 8d0f0d8 commit 9f32470

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,8 @@ class RawPtrRefLambdaCapturesChecker
381381
}
382382
QualType CapturedVarQualType = CapturedVar->getType();
383383
auto IsUncountedPtr = isUnsafePtr(CapturedVar->getType());
384-
if (C.getCaptureKind() == LCK_ByCopy && CapturedVarQualType->isReferenceType())
384+
if (C.getCaptureKind() == LCK_ByCopy &&
385+
CapturedVarQualType->isReferenceType())
385386
continue;
386387
if (IsUncountedPtr && *IsUncountedPtr)
387388
reportBug(C, CapturedVar, CapturedVarQualType, L);

clang/test/Analysis/Checkers/WebKit/uncounted-lambda-captures.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,4 +415,4 @@ void capture_copy_in_lambda(CheckedObj& checked) {
415415
// expected-warning@-1{{Captured raw-pointer 'ptr' to uncounted type is unsafe [webkit.UncountedLambdaCapturesChecker]}}
416416
ptr->method();
417417
});
418-
}
418+
}

0 commit comments

Comments
 (0)