aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJakub Kuderski <jakub@nod-labs.com>2025-10-25 15:11:18 -0400
committerGitHub <noreply@github.com>2025-10-25 15:11:18 -0400
commit57828a6d5de0be08b36382833aa2a6737f5d63a2 (patch)
treef7ce09a7c6184a29d60c62b0a63274fc89b8ba5b /clang/lib/Frontend/CompilerInvocation.cpp
parentb35c93ffe392cb41e24a6aa5fa6f1ae6999aa98f (diff)
downloadllvm-57828a6d5de0be08b36382833aa2a6737f5d63a2.zip
llvm-57828a6d5de0be08b36382833aa2a6737f5d63a2.tar.gz
llvm-57828a6d5de0be08b36382833aa2a6737f5d63a2.tar.bz2
[ADT] Prepare for deprecation of StringSwitch cases with 3+ args. NFC. (#165112)
Update `.Cases` and `.CasesLower` with 4+ args to use the `initializer_list` overload. The deprecation of these functions will come in a separate PR. For more context, see: https://github.com/llvm/llvm-project/pull/163405.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index d2cb751..bd36eb4 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -3214,7 +3214,7 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
DashX = llvm::StringSwitch<InputKind>(XValue)
.Case("cpp-output", InputKind(Language::C).getPreprocessed())
.Case("assembler-with-cpp", Language::Asm)
- .Cases("ast", "pcm", "precompiled-header",
+ .Cases({"ast", "pcm", "precompiled-header"},
InputKind(Language::Unknown, InputKind::Precompiled))
.Case("ir", Language::LLVM_IR)
.Case("cir", Language::CIR)