[clang] [Sema] Warn about omitting deprecated enumerator in switch (PR #138562)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Thu May 22 00:57:30 PDT 2025


================
@@ -6009,6 +6009,8 @@ def note_not_found_by_two_phase_lookup : Note<"%0 should be declared prior to th
 def err_undeclared_use : Error<"use of undeclared %0">;
 def warn_deprecated : Warning<"%0 is deprecated">,
     InGroup<DeprecatedDeclarations>;
+def warn_deprecated_switch_case : Warning<"%0 is deprecated">,
----------------
zmodem wrote:

Thanks! Done.

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


More information about the cfe-commits mailing list