We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b5d22f commit 6d56aeaCopy full SHA for 6d56aea
clang/lib/StaticAnalyzer/Checkers/WebKit/UncountedLambdaCapturesChecker.cpp
@@ -214,6 +214,8 @@ class UncountedLambdaCapturesChecker
214
continue;
215
bool hasProtectThis = false;
216
for (const LambdaCapture &OtherCapture : L->captures()) {
217
+ if (!OtherCapture.capturesVariable())
218
+ continue;
219
if (auto *ValueDecl = OtherCapture.getCapturedVar()) {
220
if (protectThis(ValueDecl)) {
221
hasProtectThis = true;
0 commit comments