llvm/llvm-project
Voir sur GitHubJavaScriptWrapImports:false doesn't work with ColumnLimit:0
Open
#52 935 ouverte le 30 déc. 2021
clang-formatgood first issuejavascript
Métriques du dépôt
- Stars
- (26 378 stars)
- Métriques de merge PR
- (Merge moyen 1j 2h) (1 000 PRs mergées en 30 j)
Description
I've run into an issue when using ColumnLimit: 0. When JavaScriptWrapImports is false I'd expect clang-format to leave line breaks in import statements as they are in the original file. Instead, it seems that clang-format force-wraps them:
$ cat .clang-format
Language: JavaScript
ColumnLimit: 0
JavaScriptWrapImports: false
$ cat testcase.js
import {aaa, bbb, ccc} from "abc";
$ clang-format-mp-13 testcase.js
import {aaa,
bbb,
ccc} from "abc";