]> granicus.if.org Git - clang/commitdiff
clang-format: [JS] Allow up to 3 empty lines in Google's JS style.
authorDaniel Jasper <djasper@google.com>
Fri, 9 May 2014 10:28:58 +0000 (10:28 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 9 May 2014 10:28:58 +0000 (10:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208404 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index d72556debd45baeb55a239dae0874cf07b434ac7..4a66d7aa9563ceff0b74d3f92413cf12ce825c76 100644 (file)
@@ -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;