summaryrefslogtreecommitdiffstats
path: root/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
commit42c483011b56fbd5d5aad7bad53135190b2d693a (patch)
tree1fee935431b9ffc537d51c0fabf10a2f273102f3 /lib/Format/Format.cpp
parent36208c914a98635319a7fd38a8666755622c36f9 (diff)
clang-format: Change Google style wrt. the formatting of empty messages.
Before: message Empty { } After: message Empty {} git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r--lib/Format/Format.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp
index 9a2da69e89..4a67cdeedf 100644
--- a/lib/Format/Format.cpp
+++ b/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;