[clang-tidy] Fix readability-simplify-boolean-expr when Ifs have an init statement...
authorNathan James <n.james93@hotmail.co.uk>
Wed, 18 May 2022 19:47:36 +0000 (20:47 +0100)
committerNathan James <n.james93@hotmail.co.uk>
Wed, 18 May 2022 19:47:37 +0000 (20:47 +0100)
commit35660247dd9ce850dccd60cc55428a510dbdd1c8
tree421ba6f2b3f8e20f877c94e150ac363a67d754ac
parent4ac0589122830fc6d90e0ea091300c0b979a42dc
[clang-tidy] Fix readability-simplify-boolean-expr when Ifs have an init statement or condition variable

Fixes https://github.com/llvm/llvm-project/issues/55553.

Reviewed By: LegalizeAdulthood

Differential Revision: https://reviews.llvm.org/D125874
clang-tools-extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/readability-simplify-bool-expr-cxx17.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/checkers/readability-simplify-bool-expr.cpp