This commit has been breaking most bots for a day now. There is a fix
proposed in https://reviews.llvm.org/D45912 but when I applied that
I just got different errors. Reverting to get our bots back to green.
llvm-svn: 330528
m(TemplateParameter) \
m(TypeAlias) \
m(MacroDefinition) \
- m(ObjcIvar) \
enum StyleKind {
#define ENUMERATE(v) SK_ ## v,
const NamedDecl *D,
const std::vector<llvm::Optional<IdentifierNamingCheck::NamingStyle>>
&NamingStyles) {
- if (isa<ObjCIvarDecl>(D) && NamingStyles[SK_ObjcIvar])
- return SK_ObjcIvar;
-
if (isa<TypedefDecl>(D) && NamingStyles[SK_Typedef])
return SK_Typedef;
+++ /dev/null
-// RUN: %check_clang_tidy %s readability-identifier-naming %t \
-// RUN: -config='{CheckOptions: \
-// RUN: [{key: readability-identifier-naming.ObjcIvarPrefix, value: '_'}]}' \
-// RUN: --
-
-@interface Foo
-@end
-
-@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