[all-commits] [llvm/llvm-project] c6d5ef: clang-format: [JS] sort import aliases.
Martin Probst via All-commits
all-commits at lists.llvm.org
Thu Jan 27 07:17:14 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c6d5efb5d98093c4bd7578b2ea52c9032d20dea3
https://github.com/llvm/llvm-project/commit/c6d5efb5d98093c4bd7578b2ea52c9032d20dea3
Author: Martin Probst <martin at probst.io>
Date: 2022-01-27 (Thu, 27 Jan 2022)
Changed paths:
M clang/lib/Format/SortJavaScriptImports.cpp
M clang/unittests/Format/SortImportsTestJS.cpp
Log Message:
-----------
clang-format: [JS] sort import aliases.
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
More information about the All-commits
mailing list