[clang-tools-extra] [clang-tidy] fix false positive of parentheses removal for overloaded operator (PR #192254)
Yanzuo Liu via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 9 22:18:24 PDT 2026
zwuis wrote:
> > - in a return statement around the expression, e.g. `return (1 + 2 + 3);`, redundant-parentheses check fails to flag this as redundant
>
> This is #192463.
I am idiot. The problem in #192463 is the iconsistency between built-in operators and overloaded operators. This problem is parenthese expressions which are full expressions.
https://github.com/llvm/llvm-project/pull/192254
More information about the cfe-commits
mailing list