forked from OSchip/llvm-project
13 lines
429 B
Objective-C
13 lines
429 B
Objective-C
// RUN: %check_clang_tidy %s readability-identifier-naming %t \
|
|
// RUN: -config='{CheckOptions: \
|
|
// RUN: [{key: readability-identifier-naming.ObjcIvarPrefix, value: '_'}]}' \
|
|
// RUN: --
|
|
|
|
@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
|