[clang-tools-extra] [clang-tidy] Add new check 'bugprone-inconsistent-ifelse-braces' (PR #162361)
Victor Chernyakin via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 27 15:01:25 PDT 2025
================
@@ -0,0 +1,123 @@
+// RUN: %check_clang_tidy %s bugprone-inconsistent-ifelse-braces %t
----------------
localspook wrote:
By default, `check_clang_tidy.py` will run the test in C++11+, but it looks like this test is fully compatible with C++98, so I think we could get some easy extra test coverage:
```suggestion
// RUN: %check_clang_tidy -std=c++98-or-later %s bugprone-inconsistent-ifelse-braces %t
```
https://github.com/llvm/llvm-project/pull/162361
More information about the cfe-commits
mailing list