[all-commits] [llvm/llvm-project] e1f34b: clang-format: [JS] terminate import sorting on `ex...

Jan Kühle via All-commits all-commits at lists.llvm.org
Mon May 15 06:38:14 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e1f34b735b669c5978bfdead874ee59d33f99eb0
      https://github.com/llvm/llvm-project/commit/e1f34b735b669c5978bfdead874ee59d33f99eb0
  Author: Jan Kuhle <jankuehle at google.com>
  Date:   2023-05-15 (Mon, 15 May 2023)

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

  Log Message:
  -----------
  clang-format: [JS] terminate import sorting on `export type X = Y`

Contributed by @jankuehle!

https://reviews.llvm.org/D150116 introduced a bug. `export type X = Y` was considered an export declaration and took part in import sorting. This is not correct. With this change `export type X = Y` properly terminates import sorting.

Reviewed By: krasimir

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




More information about the All-commits mailing list