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

Artem Dergachev via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 25 14:26:42 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) {
----------------
haoNoQ wrote:

`StringRef`? Gotta start somewhere. Your static strings are implicitly convertible to that.

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


More information about the llvm-commits mailing list