projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4441c4d
)
clang-format: Don't put functions on a single line in Google's Java
author
Daniel Jasper
<djasper@google.com>
Tue, 28 Oct 2014 16:15:52 +0000
(16:15 +0000)
committer
Daniel Jasper
<djasper@google.com>
Tue, 28 Oct 2014 16:15:52 +0000
(16:15 +0000)
style.
llvm-svn: 220778
clang/lib/Format/Format.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Format/Format.cpp
b/clang/lib/Format/Format.cpp
index
8960823
..
e0cce7d
100644
(file)
--- a/
clang/lib/Format/Format.cpp
+++ b/
clang/lib/Format/Format.cpp
@@
-409,6
+409,7
@@
FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) {
GoogleStyle.PenaltyBreakBeforeFirstCallParameter = 1;
if (Language == FormatStyle::LK_Java) {
+ GoogleStyle.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None;
GoogleStyle.BreakBeforeBinaryOperators = FormatStyle::BOS_NonAssignment;
GoogleStyle.ColumnLimit = 100;
GoogleStyle.SpaceAfterCStyleCast = true;