[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 04:01:08 PST 2026


balazske wrote:

I do not know if "condition" is better than "selection statement", it may be better but operands of `&&` and `||` are not called conditions either. The CERT rule tells that warning should appear for `&&` and `||` in any case (not only if inside conditions) but there are no such examples listed.

https://github.com/llvm/llvm-project/pull/180219


More information about the cfe-commits mailing list