From 656b212af7aa75161499c34236ff5cd173f47fc0 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Fri, 9 May 2014 10:28:58 +0000 Subject: [PATCH] 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 --- lib/Format/Format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1