From: Daniel Jasper Date: Tue, 28 Oct 2014 16:15:52 +0000 (+0000) Subject: clang-format: Don't put functions on a single line in Google's Java X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b89fbe60e3e228a1f0d7b685c959ece15a19898a;p=platform%2Fupstream%2Fllvm.git clang-format: Don't put functions on a single line in Google's Java style. llvm-svn: 220778 --- diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 8960823..e0cce7d 100644 --- 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;