summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2018-08-15 19:07:55 +0000
committerDaniel Jasper <djasper@google.com>2018-08-15 19:07:55 +0000
commit67e6521a6747bba0936a9202395b9bce00914f46 (patch)
treec3d72dc4788cfb08cd1c0707c7f8b1b1729a19e6 /clang/lib/Format/Format.cpp
parent00fb14da274efc35afa4eba6019050bbcf605ead (diff)
downloadbcm5719-llvm-67e6521a6747bba0936a9202395b9bce00914f46.tar.gz
bcm5719-llvm-67e6521a6747bba0936a9202395b9bce00914f46.zip
clang-format: Change Google style wrt. the formatting of empty messages.
Before: message Empty { } After: message Empty {} llvm-svn: 339803
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r--clang/lib/Format/Format.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 9a2da69e89b..4a67cdeedf3 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -819,7 +819,7 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) {
GoogleStyle.JavaScriptQuotes = FormatStyle::JSQS_Single;
GoogleStyle.JavaScriptWrapImports = false;
} else if (Language == FormatStyle::LK_Proto) {
- GoogleStyle.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None;
+ GoogleStyle.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Empty;
GoogleStyle.AlwaysBreakBeforeMultilineStrings = false;
GoogleStyle.SpacesInContainerLiterals = false;
GoogleStyle.Cpp11BracedListStyle = false;
OpenPOWER on IntegriCloud