]> granicus.if.org Git - clang/commit
[clang-format] Adds space around angle brackets in text protos
authorKrasimir Georgiev <krasimir@google.com>
Tue, 6 Feb 2018 11:34:34 +0000 (11:34 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Tue, 6 Feb 2018 11:34:34 +0000 (11:34 +0000)
commita6469cd80d2064e52854093b689cbeb8bbbb76af
tree5cc7551de7aa5c83d250b0de83646a63192e6b75
parente77fed96933e0fa11bd4cd8dc8a198a34649c6ea
[clang-format] Adds space around angle brackets in text protos

Summary:
This patch adds spaces around angle brackets in text proto Google style.
Previously these were detected as template openers and closers, which happened
to have the expected effect. Now we detect them as scope openers and closers
similarly to the way braces are handled in this context.

Reviewers: djasper

Reviewed By: djasper

Subscribers: klimek, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@324337 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/ContinuationIndenter.cpp
lib/Format/FormatToken.h
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestProto.cpp
unittests/Format/FormatTestRawStrings.cpp
unittests/Format/FormatTestTextProto.cpp