HomePhabricator

clang-format: [JS] merge import lines.

Authored by mprobst on Apr 14 2021, 4:43 AM.

Description

clang-format: [JS] merge import lines.

Multiple lines importing from the same URL can be merged:

import {X} from 'a';
import {Y} from 'a';

Merge to:

import {X, Y} from 'a';

This change implements this merge operation. It takes care not to merge in
various corner case situations (default imports, star imports).

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

Details

Committed
mprobstApr 14 2021, 8:20 AM
Differential Revision
D100466: clang-format: [JS] merge import lines.
Parents
rGf29dcbdde10c: Add flag for showing skipped headers in -H / --show-includes output
Branches
Unknown
Tags
Unknown