From 5604db48b054dd95f35d0796a2616377d2090957 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Tue, 28 Oct 2014 16:15:52 +0000 Subject: [PATCH] clang-format: Don't put functions on a single line in Google's Java style. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220778 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Format/Format.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 8960823488..e0cce7d982 100644 --- a/lib/Format/Format.cpp +++ b/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; -- 2.40.0