[clang-format] Fix indent of 'key <...>' and 'key {...}' in text protos
authorKrasimir Georgiev <krasimir@google.com>
Thu, 3 Aug 2017 14:17:29 +0000 (14:17 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Thu, 3 Aug 2017 14:17:29 +0000 (14:17 +0000)
commitd18955d320cbdbbed37288f2cd1957ab62f1f53a
treee684f55cf4d2329c2e934a5316b0917ed932c748
parent1557c7772f4463a1c815d66272963c6dba38f3ef
[clang-format] Fix indent of 'key <...>' and 'key {...}' in text protos

Summary:
This patch fixes the indentation of the code pattern `key <...>`and `key {...}` in text protos.
Previously, such line would be alinged depending on the column of the previous
colon, which usually indents too much.

I'm gonna go ahead and commit this since it's a straightforward bugfix.

Reviewers: djasper, klimek

Subscribers: klimek, cfe-commits

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

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