diff options
| author | Krasimir Georgiev <krasimir@google.com> | 2018-01-23 11:26:19 +0000 |
|---|---|---|
| committer | Krasimir Georgiev <krasimir@google.com> | 2018-01-23 11:26:19 +0000 |
| commit | 55c23a10c29d352a20f9dc27cff9056706e248af (patch) | |
| tree | ff4a36030962994dd8dad890a3ff505481b65f04 /clang-tools-extra/clangd | |
| parent | 27f77b4300a9060579a14a190ae1fe123468a1f1 (diff) | |
| download | bcm5719-llvm-55c23a10c29d352a20f9dc27cff9056706e248af.tar.gz bcm5719-llvm-55c23a10c29d352a20f9dc27cff9056706e248af.zip | |
[clang-format] Ignore UnbreakableTailLength sometimes during breaking
Summary:
This patch fixes an issue where the UnbreakableTailLength would be counted towards
the length of a token during breaking, even though we can break after the token.
For example, this proto text with column limit 20
```
# ColumnLimit: 20 V
foo: {
bar: {
bazoo: "aaaaaaa"
}
}
```
was broken:
```
# ColumnLimit: 20 V
foo: {
bar: {
bazoo:
"aaaaaaa"
}
}
```
because the 2 closing `}` were counted towards the string literal's `UnbreakableTailLength`.
Reviewers: djasper
Reviewed By: djasper
Subscribers: klimek, cfe-commits
Differential Revision: https://reviews.llvm.org/D42376
llvm-svn: 323188
Diffstat (limited to 'clang-tools-extra/clangd')
0 files changed, 0 insertions, 0 deletions

