[all-commits] [llvm/llvm-project] 63042d: clang-format: [JS] don't sort named imports if off.
Martin Probst via All-commits
all-commits at lists.llvm.org
Fri Jun 11 03:03:20 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 63042d46bb0c2481a8b7aa1c324405c2720b3603
https://github.com/llvm/llvm-project/commit/63042d46bb0c2481a8b7aa1c324405c2720b3603
Author: Martin Probst <martin at probst.io>
Date: 2021-06-11 (Fri, 11 Jun 2021)
Changed paths:
M clang/lib/Format/SortJavaScriptImports.cpp
M clang/unittests/Format/SortImportsTestJS.cpp
Log Message:
-----------
clang-format: [JS] don't sort named imports if off.
The previous implementation would accidentally still sort the individual
named imports, even if the module reference was in a clang-format off
block.
Differential Revision: https://reviews.llvm.org/D104101
More information about the All-commits
mailing list