brintos

brintos / llvm-project-archived public Read only

0
0
Text · 435 B · 345edec Raw
11 lines · plain
1// RUN: %check_clang_tidy %s google-objc-global-variable-declaration %t2 3@class NSString;4static 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 8class MyTest {9  static int not_objc_style;10};11