]> granicus.if.org Git - clang/commitdiff
Remove word 'block' from option and diagnostic I added
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 15 May 2012 17:43:16 +0000 (17:43 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 15 May 2012 17:43:16 +0000 (17:43 +0000)
in r156825.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156831 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/SemaObjC/no-ivar-in-interface-block.m

index cd2bd278121816957a5d126ec63c655ff858f885..b1b40446eac9b51ac062eca8b34c7c8423f1d0a0 100644 (file)
@@ -3023,9 +3023,9 @@ def err_redefinition_of_enumerator : Error<"redefinition of enumerator %0">;
 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)">;
index 7c87aa1e8175818c51a74a1b2becd8b6c5fb715f..be1ab69a56205a2dcc1214e40d664050baa60641 100644 (file)
@@ -9543,7 +9543,7 @@ Decl *Sema::ActOnIvar(Scope *S,
   
   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;
 }
index ce98586306191555f4b10b712cda1ed99c24c5ee..897f7d863bca3347f15ca774f892c3aac1a5b6b7 100644 (file)
@@ -1,13 +1,13 @@
-// 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