[cfe-commits] r156831 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDecl.cpp test/SemaObjC/no-ivar-in-interface-block.m

Fariborz Jahanian fjahanian at apple.com
Tue May 15 10:43:16 PDT 2012


Author: fjahanian
Date: Tue May 15 12:43:16 2012
New Revision: 156831

URL: http://llvm.org/viewvc/llvm-project?rev=156831&view=rev
Log:
Remove word 'block' from option and diagnostic I added
in r156825.

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

Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=156831&r1=156830&r2=156831&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Tue May 15 12:43:16 2012
@@ -3023,9 +3023,9 @@
 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)">;

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=156831&r1=156830&r2=156831&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Tue May 15 12:43:16 2012
@@ -9543,7 +9543,7 @@
   
   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;
 }

Modified: cfe/trunk/test/SemaObjC/no-ivar-in-interface-block.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/no-ivar-in-interface-block.m?rev=156831&r1=156830&r2=156831&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/no-ivar-in-interface-block.m (original)
+++ cfe/trunk/test/SemaObjC/no-ivar-in-interface-block.m Tue May 15 12:43:16 2012
@@ -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
 





More information about the cfe-commits mailing list