| Issue |
172180
|
| Summary |
[clang-tidy] readability-simplify-boolean-expr should handle if statements with init statements
|
| Labels |
clang-tidy
|
| Assignees |
|
| Reporter |
denzor200
|
**Problem:** `readability-simplify-boolean-expr` doesn't simplify conditions in if statements with init statements.
**Examples:**
- `if (auto x = f(); x != nullptr)` → `if (auto x = f())`
- `if (bool b = g(); b == true)` → `if (bool b = g())`
**Request:** Extend the check to handle C++17 if-with-initializer syntax.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs