From: Ted Kremenek Date: Mon, 23 Feb 2009 02:50:20 +0000 (+0000) Subject: More retain/release naming convention tests. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0dff4c00eeda61ecd25c9098a6b69d83828605d;p=clang More retain/release naming convention tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65303 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/refcnt_naming.m b/test/Analysis/refcnt_naming.m index 9ffbf6c341..5af3711d25 100644 --- a/test/Analysis/refcnt_naming.m +++ b/test/Analysis/refcnt_naming.m @@ -16,6 +16,8 @@ typedef signed char BOOL; -(NSObject*)__blebPRCopy; // read as "bleb PRCopy" -(NSObject*)__blebPRcopy; // read as "bleb P Rcopy" -(NSObject*)new_theprefixdoesnotcount; // read as "theprefixdoesnotcount" +-(NSObject*)newestAwesomeStuff; // read as "newest awesome stuff" + @end @interface MyClass : NSObject @@ -48,6 +50,7 @@ void testNames(NamingTest* x) { [x __blebPRCopy]; // expected-warning{{leak}} [x __blebPRcopy]; // no-warning [x new_theprefixdoesnotcount]; // no-warning + [x newestAwesomeStuff]; // no-warning }