diff options
| author | Hans Wennborg <hans@hanshq.net> | 2025-05-23 09:40:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-23 09:40:49 +0200 |
| commit | f4e14bf213972053d6ee4ca0269e42ba2dd2ceba (patch) | |
| tree | 1bf1a218636c1da9f61e838db2640ccfdf56f0ea /clang/lib/CodeGen/CGExpr.cpp | |
| parent | be50ada9d008673a041a5e675f9d9d70a4572aaa (diff) | |
[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.
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
