This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Fix a JavaScript import order bug.
ClosedPublic

Authored by owenpan on May 7 2019, 6:48 PM.

Details

Summary

When the imported symbol is exactly "template" the sorting is disabled.
"import {template} from x;" is not recognized as an import.

Diff Detail

Event Timeline

bowenni created this revision.May 7 2019, 6:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 7 2019, 6:48 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
bowenni retitled this revision from Fix a JavaScript import order bug. to [clang-format] Fix a JavaScript import order bug..May 7 2019, 6:49 PM
bowenni edited the summary of this revision. (Show Details)May 8 2019, 11:10 AM
bowenni added a reviewer: djasper.
djasper accepted this revision.May 12 2019, 10:46 PM

Generally, upload patches with the full file as context (that will prevent Phabricator's "Context not available")
But this change looks good. Thank you.

This revision is now accepted and ready to land.May 12 2019, 10:46 PM
MyDeveloperDay added a project: Restricted Project.Oct 11 2019, 2:39 AM
MyDeveloperDay added a subscriber: MyDeveloperDay.

Are you waiting for someone to land this?

shafik added a subscriber: shafik.Sep 21 2023, 12:24 PM

@MyDeveloperDay this looks like it still could be relevant.

owenpan commandeered this revision.Oct 25 2023, 7:26 AM
owenpan edited reviewers, added: bowenni; removed: owenpan.

The test case doesn't pass.

owenpan updated this revision to Diff 557879.Oct 25 2023, 7:35 AM

Make the test case pass.

owenpan requested review of this revision.Oct 25 2023, 7:36 AM
This revision is now accepted and ready to land.Oct 25 2023, 11:15 AM
This revision was landed with ongoing or failed builds.Oct 25 2023, 5:07 PM
This revision was automatically updated to reflect the committed changes.