When turned on, clang-format wraps JavaScript imports (and importing exports),
instead of forcing the entire import statement onto one line.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/clang/Format/Format.h | ||
---|---|---|
631 ↗ | (On Diff #60484) | Wondering whether we should call this JavaScriptWrapImports so that the JS-specific options stay together. What do you think? |
lib/Format/TokenAnnotator.cpp | ||
---|---|---|
789 ↗ | (On Diff #60519) | I think it is a bit dodgy to not mark the line as import statement based on this style option. Would it be a lot of work to pull the decision of whether or not to format this out a level higher? |
Comment Actions
- classify as LT_ImportStatement, re-enable wrapping later
- no early exist in TokenAnnotator: while loop is required for consumeToken().