From: Daniel Jasper Date: Fri, 9 May 2014 10:28:58 +0000 (+0000) Subject: clang-format: [JS] Allow up to 3 empty lines in Google's JS style. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=656b212af7aa75161499c34236ff5cd173f47fc0;p=clang clang-format: [JS] Allow up to 3 empty lines in Google's JS style. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208404 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index d72556debd..4a66d7aa95 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -339,7 +339,7 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) { if (Language == FormatStyle::LK_JavaScript) { GoogleStyle.BreakBeforeTernaryOperators = false; - GoogleStyle.MaxEmptyLinesToKeep = 2; + GoogleStyle.MaxEmptyLinesToKeep = 3; GoogleStyle.SpacesInContainerLiterals = false; } else if (Language == FormatStyle::LK_Proto) { GoogleStyle.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_None;