llvm-project/clang/lib/Format
Martin Probst c4a0dd49a3 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
2016-05-20 11:24:24 +00:00
..
AffectedRangeManager.cpp Added Fixer implementation and fix() interface in clang-format for removing redundant code. 2016-04-25 15:09:22 +00:00
AffectedRangeManager.h removed redundant '#' 2016-04-28 07:52:06 +00:00
BreakableToken.cpp clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
BreakableToken.h Roll-back r250822. 2015-10-20 13:23:58 +00:00
CMakeLists.txt clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
ContinuationIndenter.cpp Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551. 2016-04-28 07:52:03 +00:00
ContinuationIndenter.h Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551. 2016-04-28 07:52:03 +00:00
Encoding.h Add missing include for StringRef (NFC) 2016-04-18 09:08:59 +00:00
Format.cpp clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
FormatToken.cpp Enable support for __float128 in Clang and enable it on pertinent platforms 2016-05-09 08:52:33 +00:00
FormatToken.h clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
FormatTokenLexer.cpp clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
FormatTokenLexer.h clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
SortJavaScriptImports.cpp clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
SortJavaScriptImports.h clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
TokenAnalyzer.cpp clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
TokenAnalyzer.h clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
TokenAnnotator.cpp clang-format: [JS] Treat "for" as a reserved word after a ".". 2016-05-20 06:16:01 +00:00
TokenAnnotator.h Added Fixer implementation and fix() interface in clang-format for removing redundant code. 2016-04-25 15:09:22 +00:00
UnwrappedLineFormatter.cpp clang-format: Don't format unrelated nested blocks. 2016-02-29 12:26:20 +00:00
UnwrappedLineFormatter.h clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
UnwrappedLineParser.cpp clang-format: Fix incorrect indentation in last line of macro definition 2016-05-19 06:30:48 +00:00
UnwrappedLineParser.h clang-format: [JS] Handle certain cases of ASI. 2016-03-14 19:21:36 +00:00
WhitespaceManager.cpp clang-format: Implemented tab usage for continuation and indentation 2016-04-14 14:52:26 +00:00
WhitespaceManager.h Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551. 2016-04-28 07:52:03 +00:00