]> granicus.if.org Git - clang/commit
[clang-format] Recognize percents as format specifiers in protos
authorKrasimir Georgiev <krasimir@google.com>
Wed, 14 Feb 2018 19:47:58 +0000 (19:47 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Wed, 14 Feb 2018 19:47:58 +0000 (19:47 +0000)
commit2704a8a0fd42eeded114d89abaea01319de6124c
tree121efb1a7ef0ebfeaa2bb726d5d47ea903530f9a
parent67506d2f25e70b7515f5b7a462118228a6aa1b57
[clang-format] Recognize percents as format specifiers in protos

Summary:
Frequently, a percent in protos denotes a formatting specifier for string replacement.
Thus it is desirable to keep the percent together with what follows after it.

Reviewers: djasper

Reviewed By: djasper

Subscribers: klimek, cfe-commits

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

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