Skip to content

Commit 2de905d

Browse files
authored
[ADT] Deprecate variadic StringSwitch::Cases. NFC. (#166066)
Suggest the initializer_list overload instead. For more context, see #163117.
1 parent d3fe1df commit 2de905d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/include/llvm/ADT/StringSwitch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ class StringSwitch {
8989
return CasesImpl(CaseStrings, Value);
9090
}
9191

92+
[[deprecated("Pass cases in std::initializer_list instead")]]
9293
StringSwitch &Cases(StringLiteral S0, StringLiteral S1, T Value) {
9394
return CasesImpl({S0, S1}, Value);
9495
}

0 commit comments

Comments
 (0)