[all-commits] [llvm/llvm-project] 2ed7ba: [ADT] Migrate StringSwitch Cases with 6+ arguments...

Jakub Kuderski via All-commits all-commits at lists.llvm.org
Wed Oct 15 06:27:59 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ed7baafc3bf5b4321e3f77dfb1ce291e62bcadc
      https://github.com/llvm/llvm-project/commit/2ed7baafc3bf5b4321e3f77dfb1ce291e62bcadc
  Author: Jakub Kuderski <jakub at nod-labs.com>
  Date:   2025-10-15 (Wed, 15 Oct 2025)

  Changed paths:
    M clang/include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h
    M clang/lib/Basic/Targets/AVR.cpp
    M clang/lib/Driver/Job.cpp
    M clang/lib/Driver/XRayArgs.cpp
    M clang/lib/Frontend/FrontendOptions.cpp
    M clang/lib/InstallAPI/HeaderFile.cpp
    M clang/lib/Lex/PPDirectives.cpp
    M clang/lib/Sema/CheckExprLifetime.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp
    M lldb/source/Plugins/ABI/LoongArch/ABISysV_loongarch.cpp
    M lldb/source/Plugins/ABI/RISCV/ABISysV_riscv.cpp
    M lldb/source/Plugins/ABI/X86/ABISysV_x86_64.cpp
    M lldb/source/Plugins/ABI/X86/ABIWindows_x86_64.cpp
    M llvm/lib/BinaryFormat/XCOFF.cpp
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
    M llvm/lib/Target/RISCV/MCA/RISCVCustomBehaviour.cpp
    M llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTypeUtilities.cpp
    M llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
    M llvm/lib/TargetParser/ARMTargetParserCommon.cpp
    M llvm/lib/TargetParser/Triple.cpp
    M llvm/utils/TableGen/FastISelEmitter.cpp

  Log Message:
  -----------
  [ADT] Migrate StringSwitch Cases with 6+ arguments to new overload. NFC. (#163549)

Switch to the `.Cases({S0, S1, ...}, Value)` overload instead, and the
manually-enumerated overloads with 6+ arguments are getting deprecated
in https://github.com/llvm/llvm-project/pull/163405.

This pre-commits API updates ahead of the deprecation to make potential
reverts cleaner. This was already reviewed in #163405.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list