[clang-tools-extra] [clang-tidy] Move part of bugprone-unhandled-code-paths to a new check readability-trivial-switch (PR #198237)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 8 07:55:55 PDT 2026


================
@@ -0,0 +1,36 @@
+.. title:: clang-tidy - readability-trivial-switch
+
+readability-trivial-switch
+==========================
+
+Finds trivial ``switch`` statements that can be written more clearly.
+
+Every ``switch`` statement should have at least two ``case`` labels other than a ``default`` label.
----------------
EugeneZelenko wrote:

Format.

https://github.com/llvm/llvm-project/pull/198237


More information about the cfe-commits mailing list