[clang-tools-extra] [clang-tidy] Correctly handle attributes in readability-inconsistent-ifelse-braces (PR #184095)
Yanzuo Liu via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 5 05:56:39 PST 2026
================
@@ -127,12 +127,24 @@ BraceInsertionHints getBraceInsertionsHints(const Stmt *const S,
if (StartLoc.isInvalid())
return {};
+ const Stmt *InnerS = S;
+ while (const auto *AS = dyn_cast<AttributedStmt>(InnerS))
----------------
zwuis wrote:
`while` or `if`? Can `AttributedStmt` be a substatement of a `AttributedStmt`?
https://github.com/llvm/llvm-project/pull/184095
More information about the cfe-commits
mailing list