[cfe-commits] r96529 - /cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td

Douglas Gregor dgregor at apple.com
Wed Feb 17 15:02:29 PST 2010


Author: dgregor
Date: Wed Feb 17 17:02:29 2010
New Revision: 96529

URL: http://llvm.org/viewvc/llvm-project?rev=96529&view=rev
Log:
Hook the "overflow converting case value to switch condition type"
warning into -Wswitch.

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td

Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=96529&r1=96528&r2=96529&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Wed Feb 17 17:02:29 2010
@@ -2577,7 +2577,8 @@
 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">,





More information about the cfe-commits mailing list