]> granicus.if.org Git - clang/commitdiff
Hook the "overflow converting case value to switch condition type"
authorDouglas Gregor <dgregor@apple.com>
Wed, 17 Feb 2010 23:02:29 +0000 (23:02 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 17 Feb 2010 23:02:29 +0000 (23:02 +0000)
warning into -Wswitch.

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

include/clang/Basic/DiagnosticSemaKinds.td

index 0ae68beac802f87119d2dfee48c5128d6774ad21..7f23c1adf2579a30f46104fbf3df1cc656fe4bd0 100644 (file)
@@ -2577,7 +2577,8 @@ def err_case_not_in_switch : Error<"'case' statement not in switch statement">;
 def warn_bool_switch_condition : Warning<
   "switch condition is a bool">;
 def warn_case_value_overflow : Warning<
-  "overflow converting case value to switch condition type (%0 to %1)">;
+  "overflow converting case value to switch condition type (%0 to %1)">,
+  InGroup<DiagGroup<"switch">>;
 def err_duplicate_case : Error<"duplicate case value '%0'">;
 def warn_case_empty_range : Warning<"empty case range specified">;
 def warn_missing_cases : Warning<"enumeration value %0 not handled in switch">,