[clang] [alpha.webkit.NoUnretainedMemberChecker] Flag raw pointer ivars declared in class extensions (PR #244776)
Ryosuke Niwa via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 20 19:57:04 PST 2026
================
@@ -127,3 +127,16 @@ - (NSString *)prop_string1 {
@synthesize prop_string4;
@synthesize prop_string5;
@end
+
+ at interface ExtensionIvarsARC : NSObject
+ at end
+
+ at interface ExtensionIvarsARC () {
+ NSString *_strong;
+ CFStringRef _cf;
+ // expected-warning at -1{{Instance variable '_cf' (of 'ExtensionIvarsARC') is a RetainPtr-capable type 'CFStringRef'}}
----------------
rniwa wrote:
Can we add a non-ARC version as well?
https://github.com/llvm/llvm-project/pull/244776
More information about the cfe-commits
mailing list