[all-commits] [llvm/llvm-project] 265ed6: [clang-format] Fix a JavaScript import order bug

Owen Pan via All-commits all-commits at lists.llvm.org
Wed Oct 25 17:07:10 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 265ed6819409a9d76f112a601d48b971904921c8
      https://github.com/llvm/llvm-project/commit/265ed6819409a9d76f112a601d48b971904921c8
  Author: Owen Pan <owenpiano at gmail.com>
  Date:   2023-10-25 (Wed, 25 Oct 2023)

  Changed paths:
    M clang/lib/Format/SortJavaScriptImports.cpp
    M clang/unittests/Format/SortImportsTestJS.cpp

  Log Message:
  -----------
  [clang-format] Fix a JavaScript import order bug

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

Differential Revision: https://reviews.llvm.org/D61663




More information about the All-commits mailing list