[clang] [llvm] [clang-tools-extra] Add clang-tidy check to suggest replacement of conditional statement with std::min/std::max (PR #77816)
Bhuminjay Soni via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 21 07:57:59 PST 2024
11happy wrote:
> @11happy, regarding the statement count: The tests work when I add `statementCountIs(1),` right after `compoundStmt(` -> `compoundStmt(statementCountIs(1),`. I removed the binding of the compound statement, `Compound` and the `Compoind->size() > 1` check. But the tests should still succeed even if you only add the `statementCountIs(1),` matcher.
yeah it worked, idk why earlier it showed error,my mistake ig.
https://github.com/llvm/llvm-project/pull/77816
More information about the llvm-commits
mailing list