summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorKrasimir Georgiev <krasimir@google.com>2018-01-29 19:28:05 +0000
committerKrasimir Georgiev <krasimir@google.com>2018-01-29 19:28:05 +0000
commita83d3c576aa8b22b48c6932713b78effb187a4fd (patch)
tree2ee1149f22978be04dd7e9faf639303660c58adc /clang/lib/Format/Format.cpp
parent0ecb5e511e67c4ee8264de7d15a47ac6c84a55cd (diff)
downloadbcm5719-llvm-a83d3c576aa8b22b48c6932713b78effb187a4fd.tar.gz
bcm5719-llvm-a83d3c576aa8b22b48c6932713b78effb187a4fd.zip
[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 llvm-svn: 323678
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r--clang/lib/Format/Format.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index b709e9f84a7..c598a28cc42 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -709,17 +709,9 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) {
{
"pb",
"PB",
- "proto",
- "PROTO",
- "textproto",
- "TEXTPROTO",
},
/*EnclosingFunctionNames=*/
- {
- "EqualsProto",
- "PARSE_TEXT_PROTO",
- "ParseTextProto",
- },
+ {},
/*CanonicalDelimiter=*/"",
/*BasedOnStyle=*/"google",
}};
OpenPOWER on IntegriCloud