[clang] [WebKit checkers] Recognize adoptRef as a safe function (PR #119846)
Ryosuke Niwa via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 18 10:06:21 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:
Filed rdar://141692212. Will add a comment to that end. Thanks for the review!
https://github.com/llvm/llvm-project/pull/119846
More information about the cfe-commits
mailing list