Details
- Reviewers
ilya-biryukov alexfh aaron.ballman hokein - Commits
- rGb7d621b7b666: [clang-tidy] Sequence init statements, declarations, and conditions correctly…
rL338932: [clang-tidy] Sequence init statements, declarations, and conditions correctly…
rCTE338932: [clang-tidy] Sequence init statements, declarations, and conditions correctly…
Diff Detail
- Repository
- rCTE Clang Tools Extra
Event Timeline
clang-tidy/utils/ExprSequence.cpp | ||
---|---|---|
150 | Should we also handle switch statements at the same time? |
Add support for switch statement.
While I'm here, also add support for the init statement in an if statement.
clang-tidy/utils/ExprSequence.cpp | ||
---|---|---|
150 | Good point. While I was doing this, I noticed that we were also not sequencing init statements in if statements correctly, so I've added code for that as well. The description of the change is now too narrow, so I'll change that in a moment. |
Any further comments? This is marked ready to land, but I've made some non-trivial changes since then, so I didn't just want to land this.
Still LG
test/clang-tidy/bugprone-use-after-move.cpp | ||
---|---|---|
1141 | nit: clang-format this, please. |
Should we also handle switch statements at the same time?