[clang] [alpha.webkit.webkit.RetainPtrCtorAdoptChecker] Add a new WebKit checker for correct use of RetainPtr, adoptNS, and adoptCF (PR #128679)

Ryosuke Niwa via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 12 13:36:33 PDT 2025


================
@@ -3760,6 +3760,26 @@ Here are some examples of situations that we warn about as they *might* be poten
       NSObject* unretained = retained.get(); // warn
     }
 
+webkit.RetainPtrCtorAdoptChecker
+""""""""""""""""""""""""""""""""
+The goal of this rule is to make sure the constructor of RetinPtr as well as adoptNS and adoptCF are used correctly.
----------------
rniwa wrote:

Oops, fixed.

https://github.com/llvm/llvm-project/pull/128679


More information about the cfe-commits mailing list