This is an archive of the discontinued LLVM Phabricator instance.

clang-format: [JS] support default imports.
ClosedPublic

Authored by mprobst on Aug 1 2017, 1:26 AM.

Event Timeline

mprobst created this revision.Aug 1 2017, 1:26 AM
djasper accepted this revision.Aug 1 2017, 4:37 AM
djasper added inline comments.
lib/Format/SortJavaScriptImports.cpp
416

Change to

!Current->isOneOf(tok::identifier, tok::kw_default)

Same below.

This revision is now accepted and ready to land.Aug 1 2017, 4:37 AM
This revision was automatically updated to reflect the committed changes.
mprobst marked an inline comment as done.Aug 1 2017, 10:03 AM