summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/CodeComplete.cpp
diff options
context:
space:
mode:
authorKrasimir Georgiev <krasimir@google.com>2018-01-23 11:26:19 +0000
committerKrasimir Georgiev <krasimir@google.com>2018-01-23 11:26:19 +0000
commit55c23a10c29d352a20f9dc27cff9056706e248af (patch)
treeff4a36030962994dd8dad890a3ff505481b65f04 /clang-tools-extra/clangd/CodeComplete.cpp
parent27f77b4300a9060579a14a190ae1fe123468a1f1 (diff)
downloadbcm5719-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/CodeComplete.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud