1 | // RUN: %check_clang_tidy %s readability-identifier-naming %t \ |
---|---|
2 | // RUN: -config='{CheckOptions: \ |
3 | // RUN: {readability-identifier-naming.ObjcIvarPrefix: '_'}}' \ |
4 | // RUN: -- |
5 | |
6 | @interface Foo { |
7 | int _bar; |
8 | int barWithoutPrefix; |
9 | // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: invalid case style for objc ivar 'barWithoutPrefix' [readability-identifier-naming] |
10 | // CHECK-FIXES: int _barWithoutPrefix; |
11 | } |
12 | @end |
13 |