]> granicus.if.org Git - clang/commit
clang-format: [JS] Sort all JavaScript imports if any changed.
authorMartin Probst <martin@probst.io>
Fri, 2 Sep 2016 14:01:17 +0000 (14:01 +0000)
committerMartin Probst <martin@probst.io>
Fri, 2 Sep 2016 14:01:17 +0000 (14:01 +0000)
commit1f41f1002a9b334cf104c2913a992f594bf4c008
treebc0e391fffbe4aaf8d7f6500ec27f3f5e5e6324c
parent7453511ad2de56589b4ef083bcb875a9d9d62b2e
clang-format: [JS] Sort all JavaScript imports if any changed.

Summary:
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.

Reviewers: djasper

Subscribers: klimek, cfe-commits

Differential Revision: https://reviews.llvm.org/D23972

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280485 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/SortJavaScriptImports.cpp
unittests/Format/SortImportsTestJS.cpp