[clang-tools-extra] [clang-tidy] Ignore label-like statements when checking if/else bodies (PR #202869)
Gaurav Dhingra via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 11 02:28:04 PDT 2026
================
@@ -0,0 +1,126 @@
+// RUN: %check_clang_tidy -std=c++98-or-later %s readability-inconsistent-ifelse-braces %t
----------------
gxyd wrote:
I see, makes sense.
I'm just curious: If my understanding is correct that means when compiling a C++ program containing likely/unlikely attribute(s), then with `-std=c++11` the likely/unlikely attributes are completely ignored (at some stage of compilation)?
If they are indeed completely ignored, at what stage does that happen? (in AST of both `-std=c++11` or `-std=c++20` the likely/unlikely attribute continues to be there).
https://github.com/llvm/llvm-project/pull/202869
More information about the cfe-commits
mailing list