summaryrefslogtreecommitdiffstats
path: root/lib/Format/SortJavaScriptImports.h
Commit message (Collapse)AuthorAgeFilesLines
* clang-format: [JS] sort ES6 imports.Martin Probst2016-05-201-0/+36
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270203 91177308-0d34-0410-b5e6-96231b3b80d8