]> granicus.if.org Git - clang/commitdiff
clang-format: Don't put functions on a single line in Google's Java
authorDaniel Jasper <djasper@google.com>
Tue, 28 Oct 2014 16:15:52 +0000 (16:15 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 28 Oct 2014 16:15:52 +0000 (16:15 +0000)
style.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220778 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index 8960823488ff8f572a4e52f14b690f36d392501d..e0cce7d982c26ea4a795e70179e52de42fbe286e 100644 (file)
@@ -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;