]> granicus.if.org Git - clang/commitdiff
[clang-format] Disable some text proto delimiters and functions for google style
authorKrasimir Georgiev <krasimir@google.com>
Mon, 29 Jan 2018 19:28:05 +0000 (19:28 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Mon, 29 Jan 2018 19:28:05 +0000 (19:28 +0000)
Summary:
This disables some of the most commonly used text proto delimiters and functions
for google style until we resolve several style options for that style.
In particular, wheter there should be a space surrounding braces ``msg { sub { key : value } }``
and the extent of packing of submessages on a same line.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: klimek, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@323678 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index b709e9f84a77d7f8c78d5de799d0ebf79df419bd..c598a28cc426ed37d68759c271fc7a103b6e5032 100644 (file)
@@ -709,17 +709,9 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) {
       {
           "pb",
           "PB",
-          "proto",
-          "PROTO",
-          "textproto",
-          "TEXTPROTO",
       },
       /*EnclosingFunctionNames=*/
-       {
-           "EqualsProto",
-           "PARSE_TEXT_PROTO",
-           "ParseTextProto",
-       },
+      {},
       /*CanonicalDelimiter=*/"",
       /*BasedOnStyle=*/"google",
   }};