================
@@ -0,0 +1,30 @@
+// RUN: %clang_analyze_cc1 
-analyzer-checker=alpha.webkit.NoUnretainedMemberChecker \
+// RUN:   -analyzer-output=plist -o %t.plist %s
+// RUN: FileCheck --input-file=%t.plist %s
+
+#include "objc-mock-types.h"
+
+@interface Writer : NSObject
+@property (nonatomic, copy) NSString *name;
+@end
+
+@implementation Writer
+- (void)first {
+  _name = nil;
+}
+
+- (void)second {
+  _name = nil;
+}
+
+static void writeFromFunction(Writer *other) {
+  other->_name = nil;
+}
+@end
+
+// CHECK:      <key>issue_context_kind</key><string>Objective-C method</string>
----------------
rniwa wrote:

What's up with these `CHECK:` lines?

https://github.com/llvm/llvm-project/pull/244775
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to