From: Krasimir Georgiev Date: Fri, 29 Jun 2018 14:25:25 +0000 (+0000) Subject: [clang-format] Support additional common functions for text proto formatting X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc3a6212f6b22d9fe27ffb4f2c97a8d324486982;p=clang [clang-format] Support additional common functions for text proto formatting Summary: This adds a few more common function names expecting a text proto argument. Reviewers: djasper Reviewed By: djasper Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D48760 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335978 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 741584d138..59d34308c0 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -775,8 +775,11 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) { }, /*EnclosingFunctionNames=*/ { - "PARSE_TEXT_PROTO", "EqualsProto", + "EquivToProto", + "PARSE_TEST_PROTO", + "PARSE_TEXT_PROTO", + "ParseTextOrDie", }, /*CanonicalDelimiter=*/"", /*BasedOnStyle=*/"google",