]> granicus.if.org Git - clang/commitdiff
clang-format: Leave 2 empty lines in Google's JavaScript style.
authorDaniel Jasper <djasper@google.com>
Mon, 20 Jan 2014 14:10:30 +0000 (14:10 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 20 Jan 2014 14:10:30 +0000 (14:10 +0000)
As per the style guide, two lines are required between top-level
elements.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199660 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index 79e243b9074fd656d24e11c9d88671421b65bcc2..f715ce2810c9efc5729a2dfa31c16d167cffba44 100644 (file)
@@ -320,6 +320,7 @@ FormatStyle getGoogleJSStyle() {
   FormatStyle GoogleJSStyle = getGoogleStyle();
   GoogleJSStyle.Language = FormatStyle::LK_JavaScript;
   GoogleJSStyle.BreakBeforeTernaryOperators = false;
+  GoogleJSStyle.MaxEmptyLinesToKeep = 2;
   GoogleJSStyle.SpacesInContainerLiterals = false;
   return GoogleJSStyle;
 }