[clang-tools-extra] [clang] [llvm] Add clang-tidy check to suggest replacement of conditional statement with std::min/std::max (PR #77816)

Bhuminjay Soni via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 20 10:41:17 PST 2024


11happy wrote:

I did this only the ``` compoundStmt(statementCountIs(1), has(binaryOperator(...))) ```
error: 
```LLVM/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/use-std-min-max.cpp:148:19: error: CHECK-FIXES: expected string not found in input```
this one is failing
in your checks did you removed that compound binding and check for Compound->size()>1.


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


More information about the cfe-commits mailing list