This is an archive of the discontinued LLVM Phabricator instance.

clang-format: When a line is formatted, also format subsequence lines if their indent is off.
ClosedPublic

Authored by djasper on Oct 26 2015, 9:20 PM.

Details

Summary

This is especially important so that if a change is solely inserting a block around a few statements, clang-format-diff.py will still clean up and add indentation to the inner parts.

Diff Detail

Event Timeline

djasper updated this revision to Diff 38497.Oct 26 2015, 9:20 PM
djasper retitled this revision from to clang-format: When a line is formatted, also format subsequence lines if their indent is off..
djasper updated this object.
djasper added a reviewer: klimek.
djasper added a subscriber: cfe-commits.
klimek accepted this revision.Oct 27 2015, 6:03 PM
klimek edited edge metadata.

lg

This revision is now accepted and ready to land.Oct 27 2015, 6:03 PM
This revision was automatically updated to reflect the committed changes.