This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rCTE330562: update readability-identifier-naming-objc test to use interface ivar. (authored by Wizard, committed by ).
Changed prior to commit: https://reviews.llvm.org/D45936?vs=143496&id=143497#toc Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D45936 Files: test/clang-tidy/readability-identifier-naming-objc.m Index: test/clang-tidy/readability-identifier-naming-objc.m =================================================================== --- test/clang-tidy/readability-identifier-naming-objc.m +++ test/clang-tidy/readability-identifier-naming-objc.m @@ -3,13 +3,10 @@ // RUN: [{key: readability-identifier-naming.ObjcIvarPrefix, value: '_'}]}' \ // RUN: -- -@interface Foo -@end - -@implementation Foo { +@interface Foo { int _bar; int barWithoutPrefix; // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: invalid case style for objc ivar 'barWithoutPrefix' [readability-identifier-naming] // CHECK-FIXES: int _barWithoutPrefix; } -@end +@end
Index: test/clang-tidy/readability-identifier-naming-objc.m =================================================================== --- test/clang-tidy/readability-identifier-naming-objc.m +++ test/clang-tidy/readability-identifier-naming-objc.m @@ -3,13 +3,10 @@ // RUN: [{key: readability-identifier-naming.ObjcIvarPrefix, value: '_'}]}' \ // RUN: -- -@interface Foo -@end - -@implementation Foo { +@interface Foo { int _bar; int barWithoutPrefix; // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: invalid case style for objc ivar 'barWithoutPrefix' [readability-identifier-naming] // CHECK-FIXES: int _barWithoutPrefix; } -@end +@end
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits