summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/CMakeLists.txt
diff options
context:
space:
mode:
authorMartin Probst <martin@probst.io>2016-05-20 11:24:24 +0000
committerMartin Probst <martin@probst.io>2016-05-20 11:24:24 +0000
commitc4a0dd49a3906ef86520d352562e3841672464f9 (patch)
tree80fe456d449b7d853502b490408916e6f6f3e39e /clang/lib/Format/CMakeLists.txt
parent6c9472c57fe6377aeb8d52bca4b63044d1bc4662 (diff)
downloadbcm5719-llvm-c4a0dd49a3906ef86520d352562e3841672464f9.tar.gz
bcm5719-llvm-c4a0dd49a3906ef86520d352562e3841672464f9.zip
clang-format: [JS] sort ES6 imports.
Summary: This change automatically sorts ES6 imports and exports into four groups: absolute imports, parent imports, relative imports, and then exports. Exports are sorted in the same order, but not grouped further. To keep JS import sorting out of Format.cpp, this required extracting the TokenAnalyzer infrastructure to separate header and implementation files. Reviewers: djasper Subscribers: cfe-commits, klimek Differential Revision: http://reviews.llvm.org/D20198 llvm-svn: 270203
Diffstat (limited to 'clang/lib/Format/CMakeLists.txt')
-rw-r--r--clang/lib/Format/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Format/CMakeLists.txt b/clang/lib/Format/CMakeLists.txt
index 1f37a16f2be..cb46b9f255d 100644
--- a/clang/lib/Format/CMakeLists.txt
+++ b/clang/lib/Format/CMakeLists.txt
@@ -6,6 +6,9 @@ add_clang_library(clangFormat
ContinuationIndenter.cpp
Format.cpp
FormatToken.cpp
+ FormatTokenLexer.cpp
+ SortJavaScriptImports.cpp
+ TokenAnalyzer.cpp
TokenAnnotator.cpp
UnwrappedLineFormatter.cpp
UnwrappedLineParser.cpp
OpenPOWER on IntegriCloud