[PATCH] D14105: clang-format: When a line is formatted, also format subsequence lines if their indent is off.

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 26 21:20:07 PDT 2015


djasper created this revision.
djasper added a reviewer: klimek.
djasper added a subscriber: cfe-commits.
Herald added a subscriber: klimek.

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.

http://reviews.llvm.org/D14105

Files:
  lib/Format/UnwrappedLineFormatter.cpp
  test/Format/adjust-indent.cpp
  test/Format/line-ranges.cpp
  test/Format/ranges.cpp
  unittests/Format/FormatTestSelective.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14105.38497.patch
Type: text/x-patch
Size: 5179 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151027/003c18fc/attachment.bin>


More information about the cfe-commits mailing list