clang-tidy now cleans up after replacements, so leave colon and comma
removal to that.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/clang-tidy/modernize-use-default-copy.cpp | ||
---|---|---|
85 ↗ | (On Diff #75140) | I don't know why cleanup removes this comment, but there are format units tests that check that it does. |
Comment Actions
I don't know whether it is an intentional choice to remove this comment. I'd be fine either way (I think there are arguments for and against it). So, this looks good to me. But maybe Eric has something to add.
test/clang-tidy/modernize-use-default-copy.cpp | ||
---|---|---|
85 ↗ | (On Diff #75140) | This is intended behavior of cleanup. Generally, if a deleted code results in a redundant token around it, comments between the redundant token and its previous/next token (ignoring the deleted code) are considered belonging to the deleted code. Considering how a normal developer writes code, this would be correct most of the time IMO. |