[clang-tools-extra] [clang-tidy] Add check 'bugprone-assignment-in-selection-statement' (PR #180219)
Balázs Kéri via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 11 03:29:53 PST 2026
balazske wrote:
> Could we make sure that new check also correctly warns on all test cases from `assignment-in-if-condition`.
That check produces warning even in the `if ((a = b))` case which is ignored by this check. To have a similar check only an option can be added that enables warning even in the extra parentheses case.
https://github.com/llvm/llvm-project/pull/180219
More information about the cfe-commits
mailing list