llvm-project
8c3ef3be - [clang-tidy] Fix assignment-in-if-condition false positive in statement expressions (#231704)

Commit
14 days ago
[clang-tidy] Fix assignment-in-if-condition false positive in statement expressions (#231704) The check traversed into GNU statement expressions and diagnosed assignments in separate statements inside them, e.g. `({ ...; r = ...; r; })`. Now the check only looks at the last statement of a GNU statement expression, skipping any labels or attributes on it. An assignment that is itself the value is still diagnosed. Fixes #210638
Author
Parents
Loading