[clang-tools-extra] [clang-tidy] Fix readability-simplify-boolean-expr for init statements (PR #172220)

via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 15 04:08:47 PST 2025


================
@@ -720,18 +720,29 @@ bool SimplifyBooleanExprCheck::issueDiag(const ASTContext &Context,
 void SimplifyBooleanExprCheck::replaceWithThenStatement(
     const ASTContext &Context, const IfStmt *IfStatement,
     const Expr *BoolLiteral) {
+  // Added .str() below
----------------
zeyi2 wrote:

Seems like unnecessary comment, same as below.
```suggestion
```

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


More information about the cfe-commits mailing list