[clang-tools-extra] [clang-tidy][readability-redundant-parentheses] add option to prevent widely used work around (PR #164827)
Congcong Cai via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 28 19:40:53 PDT 2025
HerrCai0907 wrote:
> If the added option to to discourage writing such code, then there should not be not option at all and no warning for such cases but a separate check that warns about the pattern.
In theory true, but since c++ STL and Microsoft system header have conflict in `min` / `max`. we need to pay for them anyway.
I prefer to keep this option as it for this more common scenario.
Maybe another option which is false by default to prevent this rare scenario at least in my eyes.
https://github.com/llvm/llvm-project/pull/164827
More information about the cfe-commits
mailing list