[PATCH] D48760: [clang-format] Support additional common functions for text proto formatting

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 29 03:20:10 PDT 2018


krasimir created this revision.
Herald added a subscriber: cfe-commits.

This adds a few more common function names expecting a text proto argument.


Repository:
  rC Clang

https://reviews.llvm.org/D48760

Files:
  lib/Format/Format.cpp


Index: lib/Format/Format.cpp
===================================================================
--- lib/Format/Format.cpp
+++ lib/Format/Format.cpp
@@ -775,8 +775,11 @@
           },
           /*EnclosingFunctionNames=*/
           {
-              "PARSE_TEXT_PROTO",
               "EqualsProto",
+              "EquivToProto",
+              "PARSE_TEST_PROTO",
+              "PARSE_TEXT_PROTO",
+              "ParseTextOrDie",
           },
           /*CanonicalDelimiter=*/"",
           /*BasedOnStyle=*/"google",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48760.153459.patch
Type: text/x-patch
Size: 525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180629/577d02cd/attachment.bin>


More information about the cfe-commits mailing list