diff options
| author | Jakub Kuderski <jakub@nod-labs.com> | 2025-10-25 15:11:18 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-25 15:11:18 -0400 |
| commit | 57828a6d5de0be08b36382833aa2a6737f5d63a2 (patch) | |
| tree | f7ce09a7c6184a29d60c62b0a63274fc89b8ba5b /clang/lib/Frontend/CompilerInvocation.cpp | |
| parent | b35c93ffe392cb41e24a6aa5fa6f1ae6999aa98f (diff) | |
| download | llvm-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.cpp | 2 |
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) |
