clang-format: When a line is formatted, also format subsequence lines if their indent is off.
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. Reviewers: klimek Subscribers: cfe-commits, klimek Differential Revision: http://reviews.llvm.org/D14105 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251474 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Format/UnwrappedLineFormatter.cpp 5 additions, 2 deletionslib/Format/UnwrappedLineFormatter.cpp
- test/Format/adjust-indent.cpp 10 additions, 0 deletionstest/Format/adjust-indent.cpp
- test/Format/line-ranges.cpp 4 additions, 4 deletionstest/Format/line-ranges.cpp
- test/Format/ranges.cpp 5 additions, 5 deletionstest/Format/ranges.cpp
- unittests/Format/FormatTestSelective.cpp 18 additions, 8 deletionsunittests/Format/FormatTestSelective.cpp
test/Format/adjust-indent.cpp
0 → 100644
Please register or sign in to comment