[clang] [clang][Sema] Add -Wswitch-default warning option (PR #73077)

dong jianqiang via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 5 06:52:52 PST 2023


================
@@ -10044,6 +10044,8 @@ def warn_missing_case : Warning<"%plural{"
   "3:enumeration values %1, %2, and %3 not handled in switch|"
   ":%0 enumeration values not handled in switch: %1, %2, %3...}0">,
   InGroup<Switch>;
+def warn_switch_default : Warning<"switch missing default case">,
----------------
dongjianqiang2 wrote:

Thanks for the correction!

https://github.com/llvm/llvm-project/pull/73077


More information about the cfe-commits mailing list