[clang-tools-extra] [clang-tidy] Add check 'bugprone-assignment-in-selection-statement' (PR #180219)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 7 01:16:49 PST 2026
=?utf-8?q?Balázs_Kéri?= <balazs.keri at ericsson.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/180219 at github.com>
vbvictor wrote:
Also, this check seems to overlap with https://clang.llvm.org/extra/clang-tidy/checks/bugprone/assignment-in-if-condition.html. Which is probably not ideal and we can deprecate `assignment-in-if-condition` in the future.
Could we make sure that new check also correctly warns on all test cases from `assignment-in-if-condition`.
https://github.com/llvm/llvm-project/pull/180219
More information about the cfe-commits
mailing list