clang-format: [JS] Introduce JavaScriptWrapImports option.
Summary: When turned on, clang-format wraps JavaScript imports (and importing exports), instead of forcing the entire import statement onto one line. Reviewers: djasper Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D21273 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272558 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Format/Format.h 20 additions, 16 deletionsinclude/clang/Format/Format.h
- lib/Format/Format.cpp 3 additions, 1 deletionlib/Format/Format.cpp
- lib/Format/TokenAnnotator.cpp 4 additions, 3 deletionslib/Format/TokenAnnotator.cpp
- lib/Format/UnwrappedLineFormatter.cpp 3 additions, 1 deletionlib/Format/UnwrappedLineFormatter.cpp
- unittests/Format/FormatTestJS.cpp 24 additions, 3 deletionsunittests/Format/FormatTestJS.cpp
- unittests/Format/SortImportsTestJS.cpp 4 additions, 4 deletionsunittests/Format/SortImportsTestJS.cpp
Loading
Please register or sign in to comment