llvm-project
f4e14bf2 - [Sema] Warn about omitting deprecated enumerator in switch (#138562)

Commit
134 days ago
[Sema] Warn about omitting deprecated enumerator in switch (#138562) This undoes part of 3e4e3b17c14c15c23c0ed18ca9165b42b1b13ae3 which added the "Omitting a deprecated constant is ok; it should never materialize." logic. That seems wrong: deprecated means the enumerator is likely to be removed in future versions, not that it cannot materialize. Also move warnings about the use of deprecated enumerators in switch cases behind a separate flag, -Wdeprecated-switch-case, for users who wish to handle such enums explicitly and suppress the warning.
Author
Parents
Loading