r208404 - clang-format: [JS] Allow up to 3 empty lines in Google's JS style.
Daniel Jasper
djasper at google.com
Fri May 9 03:28:59 PDT 2014
Author: djasper
Date: Fri May 9 05:28:58 2014
New Revision: 208404
URL: http://llvm.org/viewvc/llvm-project?rev=208404&view=rev
Log:
clang-format: [JS] Allow up to 3 empty lines in Google's JS style.
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=208404&r1=208403&r2=208404&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Fri May 9 05:28:58 2014
@@ -339,7 +339,7 @@ FormatStyle getGoogleStyle(FormatStyle::
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;
More information about the cfe-commits
mailing list