[clang] [Sema] Warn about omitting deprecated enumerator in switch (PR #138562)
Hans Wennborg via cfe-commits
cfe-commits at lists.llvm.org
Tue May 6 01:14:07 PDT 2025
================
@@ -15,7 +15,7 @@ enum SwitchTwo {
};
void testSwitchTwo(enum SwitchTwo st) {
- switch (st) {} // expected-warning{{enumeration values 'Vim' and 'Emacs' not handled in switch}}
+ switch (st) {} // expected-warning{{enumeration values 'Ed', 'Vim' and 'Emacs' not handled in switch}}
}
----------------
zmodem wrote:
Done.
https://github.com/llvm/llvm-project/pull/138562
More information about the cfe-commits
mailing list