With this change, clang-format stops formatting when either it leaves
the current scope or when it comes back to the initial scope after
going into a nested one.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D14213
clang-format: Be slightly more cautious when formatting subsequent lines after a change. With r251474, clang-format could indent the entire rest of the file, if there is a missing closing brace, e.g. while writing code in an editor. ClosedPublic Authored by djasper on Oct 31 2015, 5:23 PM.
Details Summary With this change, clang-format stops formatting when either it leaves
Diff Detail
Event Timelinedjasper retitled this revision from to clang-format: Be slightly more cautious when formatting subsequent lines after a change. With r251474, clang-format could indent the entire rest of the file, if there is a missing closing brace, e.g. while writing code in an editor.. djasper updated this object. This revision is now accepted and ready to land.Oct 31 2015, 5:29 PM Closed by commit rL251760: clang-format: Be slightly more cautious when formatting subsequent lines… (authored by djasper). · Explain WhyOct 31 2015, 5:30 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 38839 cfe/trunk/lib/Format/UnwrappedLineFormatter.cpp
cfe/trunk/unittests/Format/FormatTestSelective.cpp
|