Author: djasper
Date: Mon Jan 20 08:10:30 2014
New Revision: 199660
URL: http://llvm.org/viewvc/llvm-project?rev=199660&view=rev
Log:
clang-format: Leave 2 empty lines in Google's JavaScript style.
As per the style guide, two lines are required between top-level
elements.
Modified:
cfe/trunk/lib/Format/Format.cpp
Modified: cfe/trunk/lib/Format/Format.cpp
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=199660&r1=199659&r2=199660&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Mon Jan 20 08:10:30 2014
@@ -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;
}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits