[clang-tools-extra] [clang-tidy] Improve integer comparison by matching valid expressions outside implicitCastExpr for use-integer-sign-comparison (PR #144240)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 12 14:22:21 PDT 2025


https://github.com/vbvictor commented:

Could you add more tests, e.g. when we have "inverted" casts in GH127471 like this: 
```cpp
(unsigned int)a2.size() == size() //size() return int
```
I believe we could also be add more tests with different type of casts in GH127471 case.

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


More information about the cfe-commits mailing list