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 a50f4d1 commit 13b739bCopy full SHA for 13b739b
clang/test/Analysis/Checkers/WebKit/uncounted-lambda-captures.cpp
@@ -323,6 +323,15 @@ struct RefCountableWithLambdaCapturingThis {
323
});
324
325
}
326
+
327
+ void method_nested_lambda3() {
328
+ callAsync([this, protectedThis = RefPtr { this }] {
329
+ callAsync([this] {
330
+ // expected-warning@-1{{Captured raw-pointer 'this' to ref-counted type or CheckedPtr-capable type is unsafe [webkit.UncountedLambdaCapturesChecker]}}
331
+ nonTrivial();
332
+ });
333
334
+ }
335
};
336
337
struct NonRefCountableWithLambdaCapturingThis {
0 commit comments