[clang] [WebKit checkers] Recognize adoptRef as a safe function (PR #119846)
Ryosuke Niwa via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 13 01:52:33 PST 2024
================
@@ -365,3 +365,20 @@ namespace call_with_explicit_temporary_obj {
RefPtr { provide() }->method();
}
}
+
+namespace call_with_adopt_ref {
+ class Obj {
+ public:
+ void ref() const;
+ void deref() const;
+ void method();
+ };
+
+ struct dummy {
+ RefPtr<Obj> any;
----------------
rniwa wrote:
For whatever reason, this must exist for the bug to reproduce.
https://github.com/llvm/llvm-project/pull/119846
More information about the cfe-commits
mailing list