[clang] [alpha.webkit.webkit.RetainPtrCtorAdoptChecker] Add a new WebKit checker for correct use of RetainPtr, adoptNS, and adoptCF (PR #128679)
Rashmi Mudduluru via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 12 13:20:12 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.
----------------
t-rasmud wrote:
nit: `RetainPtr`
https://github.com/llvm/llvm-project/pull/128679
More information about the cfe-commits
mailing list