]> granicus.if.org Git - clang/commitdiff
Create variable for warning group -Wshorten-64-to-32.
authorTed Kremenek <kremenek@apple.com>
Tue, 9 Oct 2012 18:46:14 +0000 (18:46 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 9 Oct 2012 18:46:14 +0000 (18:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165521 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td

index 64beac37e4b5795771628517168a82c8c8b26dc9..a0a5911eb532b19e7516f084b75889bf00c33861 100644 (file)
@@ -195,7 +195,7 @@ def Sentinel : DiagGroup<"sentinel">;
 def MissingMethodReturnType : DiagGroup<"missing-method-return-type">;
 def : DiagGroup<"sequence-point">;
 def Shadow : DiagGroup<"shadow">;
-def : DiagGroup<"shorten-64-to-32">;
+def Shorten64To32 : DiagGroup<"shorten-64-to-32">;
 def : DiagGroup<"sign-promo">;
 def SignCompare : DiagGroup<"sign-compare">;
 def : DiagGroup<"stack-protector">;
@@ -331,7 +331,7 @@ def Conversion : DiagGroup<"conversion",
                            [BoolConversion,
                             ConstantConversion,
                             EnumConversion,
-                            DiagGroup<"shorten-64-to-32">,
+                            Shorten64To32,
                             IntConversion,
                             LiteralConversion,
                             NonLiteralNullConversion, // (1-1)->pointer (etc)
index 882c77d1d166aaef796c478a6091a213ffa90986..953aab6983f9b2950f4921a413aa495c5d841b8e 100644 (file)
@@ -1955,7 +1955,7 @@ def warn_impcast_integer_precision : Warning<
   InGroup<DiagGroup<"conversion">>, DefaultIgnore;
 def warn_impcast_integer_64_32 : Warning<
   "implicit conversion loses integer precision: %0 to %1">,
-  InGroup<DiagGroup<"shorten-64-to-32">>, DefaultIgnore;
+  InGroup<Shorten64To32>, DefaultIgnore;
 def warn_impcast_integer_precision_constant : Warning<
   "implicit conversion from %2 to %3 changes value from %0 to %1">,
   InGroup<ConstantConversion>;