This is an archive of the discontinued LLVM Phabricator instance.

clang-format: [JS] sort import aliases.
ClosedPublic

Authored by mprobst on Jan 27 2022, 6:38 AM.

Details

Summary

Users can define aliases for long symbols using import aliases:

import X = A.B.C;

Previously, these were unhandled and would terminate import sorting.
With this change, aliases sort as their own group, coming last after all
other imports.

Aliases are not sorted within their group, as they may reference each
other, so order is significant.

Revision URI: https://reviews.llvm.org/D118361

Diff Detail

Event Timeline

mprobst created this revision.Jan 27 2022, 6:38 AM
mprobst requested review of this revision.Jan 27 2022, 6:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2022, 6:38 AM
jankuehle accepted this revision.Jan 27 2022, 7:15 AM
This revision is now accepted and ready to land.Jan 27 2022, 7:15 AM
curdeius added a project: Restricted Project.Jan 28 2022, 12:32 AM

There should have been an entry in the ReleaseNotes.rst.