| 1 | // RUN: %check_clang_tidy %s google-objc-global-variable-declaration %t |
|---|---|
| 2 | |
| 3 | @class NSString; |
| 4 | static NSString* const myConstString = @"hello"; |
| 5 | // CHECK-MESSAGES: :[[@LINE-1]]:24: warning: const global variable 'myConstString' must have a name which starts with an appropriate prefix [google-objc-global-variable-declaration] |
| 6 | // CHECK-FIXES: static NSString* const kMyConstString = @"hello"; |
| 7 | |
| 8 | class MyTest { |
| 9 | static int not_objc_style; |
| 10 | }; |
| 11 |
