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 | 67e6521a6747bba0936a9202395b9bce00914f46 (patch) | |
tree | c3d72dc4788cfb08cd1c0707c7f8b1b1729a19e6 /clang/lib/Format/Format.cpp | |
parent | 00fb14da274efc35afa4eba6019050bbcf605ead (diff) | |
download | bcm5719-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.cpp | 2 |
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; |