summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/checkers/readability-identifier-naming-objc.m
blob: ab123c272022b3ab2e72d1172dd1a675fc240e6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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 
OpenPOWER on IntegriCloud