User feedback is that they expect *all* imports to be sorted if any import was
affected by a change, not just imports up to the first non-affected line, as
clang-format currently does.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D23972
clang-format: [JS] Sort all JavaScript imports if any changed. ClosedPublic Authored by mprobst on Aug 28 2016, 6:14 AM.
Details Summary User feedback is that they expect *all* imports to be sorted if any import was
Diff Detail Event TimelineThis revision is now accepted and ready to land.Sep 2 2016, 6:44 AM Closed by commit rL280485: clang-format: [JS] Sort all JavaScript imports if any changed. (authored by mprobst). · Explain WhySep 2 2016, 7:09 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 69511 lib/Format/SortJavaScriptImports.cpp
unittests/Format/SortImportsTestJS.cpp
|