[clang-tools-extra] [clang-tidy][readability-redundant-parentheses] add option to prevent widely used work around (PR #164827)
Oliver Stöneberg via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 28 10:19:46 PDT 2025
firewave wrote:
> The lists of symbols grow in the future meams there are some developers writing new code in this way. I am not sure why they want to add parenthesses instead just rename the fucntion..
That seems to go beyond this check. It is a readability check about detecting "redundant" parentheses but in those cases they are not redundant.
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.
https://github.com/llvm/llvm-project/pull/164827
More information about the cfe-commits
mailing list