[clang-tools-extra] [clang-tidy] Fix false positive in readability-redundant-parentheses … (PR #192827)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 19 01:30:26 PDT 2026


https://github.com/vbvictor commented:

Thank you for taking a look at this, but I'm afraid this is the wrong direction.
Cases like this:
```cpp
if ((it != end))
    return true;
```
seems as redundant parentheses and should be still flagged.
We need more fine-turning for this check to avoid FP and don't bring new FN

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


More information about the cfe-commits mailing list