]> granicus.if.org Git - clang/commit
[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)
commit77c8d2a783b8b9a6ea9c56bb796ef8041f35fc98
tree5e47e9382fd69262e86162fce6bb214242449f1c
parentcf4c953d2c070d1c505f512a0d395a60b95c3728
[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

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