diff options
author | Daniel Jasper <djasper@google.com> | 2018-08-15 19:07:55 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2018-08-15 19:07:55 +0000 |
commit | 42c483011b56fbd5d5aad7bad53135190b2d693a (patch) | |
tree | 1fee935431b9ffc537d51c0fabf10a2f273102f3 /lib/Format/Format.cpp | |
parent | 36208c914a98635319a7fd38a8666755622c36f9 (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.cpp | 2 |
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; |