[clang] [llvm] [alpha.webkit.NoUncheckedPtrMemberChecker] Introduce member variable checker for CheckedPtr/CheckedRef (PR #108352)

Ryosuke Niwa via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 26 22:51:11 PDT 2024


================
@@ -53,48 +53,49 @@ hasPublicMethodInBase(const CXXBaseSpecifier *Base, const char *NameToMatch) {
   return hasPublicMethodInBaseClass(R, NameToMatch) ? R : nullptr;
 }
 
-std::optional<bool> isRefCountable(const CXXRecordDecl* R)
-{
+std::optional<bool> isSmartPtrCompatible(const CXXRecordDecl *R,
+                                         const char *IncMethodName,
+                                         const char *DecMethodName) {
----------------
rniwa wrote:

Sure, we can use that instead.

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


More information about the cfe-commits mailing list