This is an archive of the discontinued LLVM Phabricator instance.

[clang-format cleanup] merge continuous deleted lines into one deletion.
Needs RevisionPublic

Authored by ioeric on Jan 3 2017, 8:09 AM.

Details

Reviewers
djasper
idlecode
Summary

This cleans up "\n" among continuous lines when they are deleted.

Event Timeline

ioeric updated this revision to Diff 82888.Jan 3 2017, 8:09 AM
ioeric retitled this revision from to [clang-format cleanup] merge continuous deleted lines into one deletion..
ioeric updated this object.
ioeric added a reviewer: djasper.
ioeric added a subscriber: cfe-commits.
ioeric updated this revision to Diff 82889.Jan 3 2017, 8:12 AM
  • Fixed a nit.

post-vacation ping :)

idlecode added inline comments.
lib/Format/Format.cpp
1182

Could you add brackets around loop body?

1184

While you are here, could you get rid of Tokens vector too?
I believe iterating over DeletedTokensdirectly will do the job.

idlecode requested changes to this revision.EditedFeb 4 2017, 10:09 AM

Few other tests (ChangeNamespaceTest from extra repository) require update too.

This revision now requires changes to proceed.Feb 4 2017, 10:09 AM