[clang-format] Fix parsing of <>-style proto options
authorKrasimir Georgiev <krasimir@google.com>
Thu, 3 Aug 2017 13:43:45 +0000 (13:43 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Thu, 3 Aug 2017 13:43:45 +0000 (13:43 +0000)
commitfa4dbb682013751dddd228c553a3ff4f2dff2401
treea02cf8ca4a9bff3e0e38d38303344a328195cf2a
parent55aebd689ea880a65e8720be73519dc03016409c
[clang-format] Fix parsing of <>-style proto options

Summary:
This patch fixes the parsing of proto option fields like `option op = <...>`.
Previously the parser did not enter the right code path inside the angle braces,
causing the contents to be split into several unwrapped lines inside.

I'll just go ahead and commit this since it's a straightforward bugfix.

Reviewers: djasper, klimek

Subscribers: cfe-commits

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

llvm-svn: 309937
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTestProto.cpp