[clang-tools-extra] [clang-tidy] Add new check 'bugprone-inconsistent-ifelse-braces' (PR #162361)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 2 15:17:42 PST 2025


https://github.com/vbvictor commented:

To me, this is purely readability check `readability-inconsistent-ifelse-braces`. I would leave `bugprone` category for checks that catch pattern  which almost certainly have a bug (or very easy to have a bug). With such braces, I don't think it's _very_ easy to get a bug. We already have [readability-misleading-indentation](https://clang.llvm.org/extra/clang-tidy/checks/readability/misleading-indentation.html) that catches cases with braces that are likely to have a bug.

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


More information about the cfe-commits mailing list