r335978 - [clang-format] Support additional common functions for text proto formatting

Krasimir Georgiev via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 29 07:25:26 PDT 2018


Author: krasimir
Date: Fri Jun 29 07:25:25 2018
New Revision: 335978

URL: http://llvm.org/viewvc/llvm-project?rev=335978&view=rev
Log:
[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

Modified:
    cfe/trunk/lib/Format/Format.cpp

Modified: cfe/trunk/lib/Format/Format.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=335978&r1=335977&r2=335978&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Fri Jun 29 07:25:25 2018
@@ -775,8 +775,11 @@ FormatStyle getGoogleStyle(FormatStyle::
           },
           /*EnclosingFunctionNames=*/
           {
-              "PARSE_TEXT_PROTO",
               "EqualsProto",
+              "EquivToProto",
+              "PARSE_TEST_PROTO",
+              "PARSE_TEXT_PROTO",
+              "ParseTextOrDie",
           },
           /*CanonicalDelimiter=*/"",
           /*BasedOnStyle=*/"google",




More information about the cfe-commits mailing list