]> granicus.if.org Git - clang/commitdiff
Include 'long long' extension warning in the LongLong group so that it can be
authorDmitri Gribenko <gribozavr@gmail.com>
Mon, 24 Sep 2012 19:05:10 +0000 (19:05 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Mon, 24 Sep 2012 19:05:10 +0000 (19:05 +0000)
silenced by -Wno-long-long.  Thanks Richard Smith for the fix idea!

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

include/clang/Basic/DiagnosticCommonKinds.td
include/clang/Basic/DiagnosticGroups.td

index 999c6d261867fabae28ce4fe7f6559c04cbed00e..a6ce9d4a2d212c40fd2a814f3efa1f146e407271 100644 (file)
@@ -83,7 +83,7 @@ def ext_c99_longlong : Extension<
   InGroup<LongLong>;
 def ext_cxx11_longlong : Extension<
   "'long long' is a C++11 extension">,
-  InGroup<CXX11>;
+  InGroup<CXX11LongLong>;
 def warn_cxx98_compat_longlong : Warning<
   "'long long' is incompatible with C++98">,
   InGroup<CXX98CompatPedantic>, DefaultIgnore;
index a4e9231daa87ae3058b02762e33e796a7346bfc4..32c03f7364dcf9201dbe190215ad8b84ce8f54f5 100644 (file)
@@ -143,7 +143,8 @@ def : DiagGroup<"missing-noreturn">;
 def MultiChar : DiagGroup<"multichar">;
 def : DiagGroup<"nested-externs">;
 def : DiagGroup<"newline-eof">;
-def LongLong : DiagGroup<"long-long">;
+def CXX11LongLong : DiagGroup<"c++11-long-long">;
+def LongLong : DiagGroup<"long-long", [CXX11LongLong]>;
 def MismatchedTags : DiagGroup<"mismatched-tags">;
 def MissingFieldInitializers : DiagGroup<"missing-field-initializers">;
 def ModuleBuild : DiagGroup<"module-build">;
@@ -428,7 +429,8 @@ def NonGCC : DiagGroup<"non-gcc",
 
 // A warning group for warnings about using C++11 features as extensions in
 // earlier C++ versions.
-def CXX11 : DiagGroup<"c++11-extensions", [CXX11ExtraSemi]>;
+def CXX11 : DiagGroup<"c++11-extensions", [CXX11ExtraSemi, CXX11LongLong]>;
+
 def : DiagGroup<"c++0x-extensions", [CXX11]>;
 def DelegatingCtorCycles :
   DiagGroup<"delegating-ctor-cycles">;