[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)
commitddb19248eb1bea29aaf5c9ed8b1b19e45b08e8e9
tree6f26a5a479b91990fededd9e8d17a933809112e5
parent50f6d3545785b061ece2fad2355bc914912db7cc
[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

llvm-svn: 309941
clang/lib/Format/ContinuationIndenter.cpp
clang/unittests/Format/FormatTestProto.cpp
clang/unittests/Format/FormatTestTextProto.cpp