[all-commits] [llvm/llvm-project] 5e4ac0: [clang-tidy] Move part of bugprone-unhandled-code-...

Yanzuo Liu via All-commits all-commits at lists.llvm.org
Sun Jun 28 07:51:19 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e4ac011bdd7c7bc8010ea463157eda46bff8f74
      https://github.com/llvm/llvm-project/commit/5e4ac011bdd7c7bc8010ea463157eda46bff8f74
  Author: Yanzuo Liu <zwuis at outlook.com>
  Date:   2026-06-28 (Sun, 28 Jun 2026)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/UnhandledCodePathsCheck.cpp
    M clang-tools-extra/clang-tidy/bugprone/UnhandledCodePathsCheck.h
    M clang-tools-extra/clang-tidy/readability/CMakeLists.txt
    M clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp
    A clang-tools-extra/clang-tidy/readability/TrivialSwitchCheck.cpp
    A clang-tools-extra/clang-tidy/readability/TrivialSwitchCheck.h
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/bugprone/unhandled-code-paths.rst
    M clang-tools-extra/docs/clang-tidy/checks/list.rst
    A clang-tools-extra/docs/clang-tidy/checks/readability/trivial-switch.rst
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/unhandled-code-paths.cpp
    A clang-tools-extra/test/clang-tidy/checkers/readability/trivial-switch.cpp

  Log Message:
  -----------
  [clang-tidy] Move part of bugprone-unhandled-code-paths to a new check readability-trivial-switch (#198237)

The moved part detects trivial `switch` statement which can be removed
or rewritted as `if` statement.

hicpp-multiway-paths-covered was removed without keeping its name as
alias, so we don't need to update infrastructore to support one-to-many
aliases.

Changes were generated by AI, and reviewed and modified by me
afterwards.

Assisted-by: GPT-5.5



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