summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format
diff options
context:
space:
mode:
authorKrasimir Georgiev <krasimir@google.com>2018-01-31 10:14:10 +0000
committerKrasimir Georgiev <krasimir@google.com>2018-01-31 10:14:10 +0000
commitc2091808280a054cf9cdb7897335a5039c3a9cf8 (patch)
tree53aa471be21936be501ff1df629b8617cb661cfe /clang/lib/Format
parentf9fe311ee7c579af35e30b84aeff08df9b4e1a4a (diff)
downloadbcm5719-llvm-c2091808280a054cf9cdb7897335a5039c3a9cf8.tar.gz
bcm5719-llvm-c2091808280a054cf9cdb7897335a5039c3a9cf8.zip
[clang-format] Adds space around braces in text protos
Summary: This patch modifies the text proto Google style to add spaces around braces. I investigated using something different than Cpp11BracedListStyle, but it turns out it's what we want and also the java and js styles also depend on that. Reviewers: djasper Reviewed By: djasper Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D42685 llvm-svn: 323860
Diffstat (limited to 'clang/lib/Format')
-rw-r--r--clang/lib/Format/Format.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index c598a28cc42..631d186e629 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -750,6 +750,7 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) {
} else if (Language == FormatStyle::LK_Proto) {
GoogleStyle.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None;
GoogleStyle.SpacesInContainerLiterals = false;
+ GoogleStyle.Cpp11BracedListStyle = false;
} else if (Language == FormatStyle::LK_ObjC) {
GoogleStyle.ColumnLimit = 100;
}
OpenPOWER on IntegriCloud