in r156825.
llvm-svn: 156831
def err_duplicate_member : Error<"duplicate member %0">;
def err_misplaced_ivar : Error<
"ivars may not be placed in %select{categories|class extension}0">;
-def warn_ivar_in_interface_block : Warning<
- "declaration of ivar in the interface block is deprecated">,
- InGroup<DiagGroup<"interface-block-ivar">>, DefaultIgnore;
+def warn_ivars_in_interface : Warning<
+ "declaration of ivars in the interface is deprecated">,
+ InGroup<DiagGroup<"interface-ivars">>, DefaultIgnore;
def ext_enum_value_not_int : Extension<
"ISO C restricts enumerator values to range of 'int' (%0 is too "
"%select{small|large}1)">;
if (LangOpts.ObjCNonFragileABI2 &&
!NewID->isInvalidDecl() && isa<ObjCInterfaceDecl>(EnclosingDecl))
- Diag(Loc, diag::warn_ivar_in_interface_block);
+ Diag(Loc, diag::warn_ivars_in_interface);
return NewID;
}
-// RUN: %clang_cc1 -fsyntax-only -verify -Winterface-block-ivar %s
+// RUN: %clang_cc1 -fsyntax-only -verify -Winterface-ivars %s
// rdar://10763173
@interface I
{
- @protected int P_IVAR; // expected-warning {{declaration of ivar in the interface block is deprecated}}
+ @protected int P_IVAR; // expected-warning {{declaration of ivars in the interface is deprecated}}
- @public int PU_IVAR; // expected-warning {{declaration of ivar in the interface block is deprecated}}
+ @public int PU_IVAR; // expected-warning {{declaration of ivars in the interface is deprecated}}
- @private int PRV_IVAR; // expected-warning {{declaration of ivar in the interface block is deprecated}}
+ @private int PRV_IVAR; // expected-warning {{declaration of ivars in the interface is deprecated}}
}
@end