[llvm] [clang] [clang-tools-extra] Add clang-tidy check to suggest replacement of conditional statement with std::min/std::max (PR #77816)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 20 12:11:07 PST 2024
https://github.com/5chmidti commented:
@11happy, regarding the statement count:
The tests work when I add `statementCountIs(1),` right after `compoundStmt(` -> `compoundStmt(statementCountIs(1),`. I removed the bound node, `Compound` and the `Compoind->size() > 1` check. But the tests should still succeed even if you leave the rest as is.
https://github.com/llvm/llvm-project/pull/77816
More information about the cfe-commits
mailing list