r323678 - [clang-format] Disable some text proto delimiters and functions for google style
Krasimir Georgiev via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 29 11:28:05 PST 2018
Author: krasimir
Date: Mon Jan 29 11:28:05 2018
New Revision: 323678
URL: http://llvm.org/viewvc/llvm-project?rev=323678&view=rev
Log:
[clang-format] Disable some text proto delimiters and functions for google style
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
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=323678&r1=323677&r2=323678&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Mon Jan 29 11:28:05 2018
@@ -709,17 +709,9 @@ FormatStyle getGoogleStyle(FormatStyle::
{
"pb",
"PB",
- "proto",
- "PROTO",
- "textproto",
- "TEXTPROTO",
},
/*EnclosingFunctionNames=*/
- {
- "EqualsProto",
- "PARSE_TEXT_PROTO",
- "ParseTextProto",
- },
+ {},
/*CanonicalDelimiter=*/"",
/*BasedOnStyle=*/"google",
}};
More information about the cfe-commits
mailing list