[clang] [clang-format] Stop breaking unbreakable strings in JS (PR #66168)

via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 13 17:03:50 PDT 2023


alexfh wrote:

Unfortunately, this is not enough. I found at least one more broken case (pun intended):
```
export type LooooooooooooooooooooooooooongTypeName = 'AAAAAAAAAAAA'|('BBBBBB');
```
gets transformed into
```
export type LooooooooooooooooooooooooooongTypeName = 'AAAAAAAAAAAA'|('BBBBB' +
                                                                       'B');
```

https://github.com/llvm/llvm-project/pull/66168


More information about the cfe-commits mailing list