[clang-tools-extra] [clang-tidy] Ignore label-like statements when checking if/else bodies (PR #202869)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 10 04:07:39 PDT 2026


================
@@ -0,0 +1,126 @@
+// RUN: %check_clang_tidy -std=c++98-or-later %s readability-inconsistent-ifelse-braces %t
----------------
vbvictor wrote:

Because I guess clang compile them just fine with c++98: https://godbolt.org/z/zs6MPsWh5
Why is that I don't know, maybe clang folks can give answer

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


More information about the cfe-commits mailing list