From afb38bc0a639fefe8e9057fefcb314b7d0fda320 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Mon, 20 Jan 2014 14:10:30 +0000 Subject: [PATCH] clang-format: Leave 2 empty lines in Google's JavaScript style. 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 79e243b907..f715ce2810 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -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; } -- 2.49.0