[clang] [lldb] [llvm] [ADT] Mark StringSwitch Cases with 6+ arguments as deprecated. NFC. (PR #163405)
Nikita Popov via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 14 13:52:19 PDT 2025
================
@@ -110,31 +111,41 @@ class StringSwitch {
return CasesImpl(Value, {S0, S1, S2, S3, S4});
}
+ LLVM_DEPRECATED("Pass cases in std::initializer_list instead",
+ "Cases({S0, S1, ...}, Value)")
----------------
nikic wrote:
The second argument to LLVM_DEPRECATED is a fix-it replacement. Use `[[deprecated]]` instead of LLVM_DEPRECATED if you cannot provide a valid fix-it. We should really rename this macro.
https://github.com/llvm/llvm-project/pull/163405
More information about the cfe-commits
mailing list