[all-commits] [llvm/llvm-project] 3d4a60: clang-format: [JS] do not merge imports and exports.

Martin Probst via All-commits all-commits at lists.llvm.org
Tue Apr 20 04:08:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d4a6037ff462bc3e41e4924c603f0e3dfc2c06a
      https://github.com/llvm/llvm-project/commit/3d4a6037ff462bc3e41e4924c603f0e3dfc2c06a
  Author: Martin Probst <martin at probst.io>
  Date:   2021-04-20 (Tue, 20 Apr 2021)

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

  Log Message:
  -----------
  clang-format: [JS] do not merge imports and exports.

Previously, clang-format would erroneously merge import and export
statements. These need to be kept separate, as the semantics differ.

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




More information about the All-commits mailing list