[clang] [clang][Sema] Add -Wswitch-default warning option (PR #73077)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 5 06:18:47 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">,
----------------
AaronBallman wrote:
```suggestion
def warn_switch_default : Warning<"'switch' missing 'default' label">,
```
https://github.com/llvm/llvm-project/pull/73077
More information about the cfe-commits
mailing list