From: Douglas Gregor Date: Wed, 17 Feb 2010 23:02:29 +0000 (+0000) Subject: Hook the "overflow converting case value to switch condition type" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b3b4363df8d24905cef8254b0841ef1c9a8bfac;p=clang Hook the "overflow converting case value to switch condition type" warning into -Wswitch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96529 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 0ae68beac8..7f23c1adf2 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -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>; 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">,