Previously, clang-format would always insert an additional line break after the
import block if the main body started with a comment, due to loosing track of
the first non-import line.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D24708
clang-format: [JS] Fix line breaks before comments when sorting imports. ClosedPublic Authored by mprobst on Sep 18 2016, 10:29 AM.
Details Summary Previously, clang-format would always insert an additional line break after the
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Sep 18 2016, 11:33 PM Closed by commit rL281888: clang-format: [JS] Fix line breaks before comments when sorting imports. (authored by mprobst). · Explain WhySep 19 2016, 12:11 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 71772 cfe/trunk/lib/Format/SortJavaScriptImports.cpp
cfe/trunk/unittests/Format/SortImportsTestJS.cpp
|