Lines Matching defs:ref_countable_ref
115 RefCountable& ref_countable_ref = automatic;
116 auto foo1 = [ref_countable_ref](){ ref_countable_ref.constMethod(); };
117 // expected-warning@-1{{Captured reference 'ref_countable_ref' to ref-counted type or CheckedPtr-capable type is unsafe [webkit.UncountedLambdaCapturesChecker]}}
118 auto foo2 = [&ref_countable_ref](){ ref_countable_ref.method(); };
119 // expected-warning@-1{{Captured reference 'ref_countable_ref' to ref-counted type or CheckedPtr-capable type is unsafe [webkit.UncountedLambdaCapturesChecker]}}
120 auto foo3 = [&](){ ref_countable_ref.method(); };
121 // expected-warning@-1{{Implicitly captured reference 'ref_countable_ref' to ref-counted type or CheckedPtr-capable type is unsafe [webkit.UncountedLambdaCapturesChecker]}}
122 auto foo4 = [=](){ ref_countable_ref.constMethod(); };
123 // expected-warning@-1{{Implicitly captured reference 'ref_countable_ref' to ref-counted type or CheckedPtr-capable type is unsafe [webkit.UncountedLambdaCapturesChecker]}}
135 RefCountable &ref_countable_ref = automatic;