Skip to content

Commit 793b762

Browse files
committed
Tighten deprecations
1 parent b06d53d commit 793b762

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/include/llvm/ADT/StringSwitch.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ class StringSwitch {
9898
return CasesImpl({S0, S1, S2}, Value);
9999
}
100100

101+
[[deprecated("Pass cases in std::initializer_list instead")]]
101102
StringSwitch &Cases(StringLiteral S0, StringLiteral S1, StringLiteral S2,
102103
StringLiteral S3, T Value) {
103104
return CasesImpl({S0, S1, S2, S3}, Value);
@@ -180,6 +181,7 @@ class StringSwitch {
180181
return CasesLowerImpl({S0, S1, S2}, Value);
181182
}
182183

184+
[[deprecated("Pass cases in std::initializer_list instead")]]
183185
StringSwitch &CasesLower(StringLiteral S0, StringLiteral S1, StringLiteral S2,
184186
StringLiteral S3, T Value) {
185187
return CasesLowerImpl({S0, S1, S2, S3}, Value);

0 commit comments

Comments
 (0)