[cfe-commits] r142049 - in /cfe/trunk: include/clang/Basic/DiagnosticParseKinds.td lib/Parse/ParseDeclCXX.cpp

Richard Smith richard-llvm at metafoo.co.uk
Fri Oct 14 20:55:17 PDT 2011


Author: rsmith
Date: Fri Oct 14 22:55:17 2011
New Revision: 142049

URL: http://llvm.org/viewvc/llvm-project?rev=142049&view=rev
Log:
Rename an ExtWarn to ext_ for consistency.

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td
    cfe/trunk/lib/Parse/ParseDeclCXX.cpp

Modified: cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td?rev=142049&r1=142048&r2=142049&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td Fri Oct 14 22:55:17 2011
@@ -471,7 +471,7 @@
   InGroup<CXX11>;
 
 // C++11 in-class member initialization
-def warn_nonstatic_member_init_accepted_as_extension: ExtWarn<
+def ext_nonstatic_member_init : ExtWarn<
   "in-class initialization of non-static data member accepted as a C++11 extension">,
   InGroup<CXX11>;
 def err_bitfield_member_init: Error<

Modified: cfe/trunk/lib/Parse/ParseDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseDeclCXX.cpp?rev=142049&r1=142048&r2=142049&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseDeclCXX.cpp (original)
+++ cfe/trunk/lib/Parse/ParseDeclCXX.cpp Fri Oct 14 22:55:17 2011
@@ -1885,7 +1885,7 @@
     if (HasDeferredInitializer) {
       // The initializer was deferred; parse it and cache the tokens.
       if (!getLang().CPlusPlus0x)
-        Diag(Tok, diag::warn_nonstatic_member_init_accepted_as_extension);
+        Diag(Tok, diag::ext_nonstatic_member_init);
       
       if (DeclaratorInfo.isArrayOfUnknownBound()) {
         // C++0x [dcl.array]p3: An array bound may also be omitted when the





More information about the cfe-commits mailing list