]> granicus.if.org Git - clang/commit
[clang-format] Break template declarations followed by comments
authorKrasimir Georgiev <krasimir@google.com>
Wed, 23 May 2018 14:18:19 +0000 (14:18 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Wed, 23 May 2018 14:18:19 +0000 (14:18 +0000)
commit1ef6dbb8b910ce5a1bb24626faae4621496a4daa
tree3d984eafbf92faac500ef8f4054a66fae3e2ef44
parentf7ac5a44796bbb164c285e2c914f3261e7a1ecef
[clang-format] Break template declarations followed by comments

Summary:
This patch fixes two bugs in clang-format where the template wrapper doesn't skip over
comments causing a long template declaration to not be split into multiple lines.
These were latent and exposed by r332436.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: klimek, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333085 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/ContinuationIndenter.cpp
unittests/Format/FormatTest.cpp