summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-05-09 10:28:58 +0000
committerDaniel Jasper <djasper@google.com>2014-05-09 10:28:58 +0000
commit8f83a9072dd10dd18be8c2231e0e1c9dcbc4981d (patch)
tree178443e27661cc99102fb373af1032eeb3d46c8e /clang/lib/Format
parent8951908218ce58133794f241a7fbf4b2bd58de40 (diff)
downloadbcm5719-llvm-8f83a9072dd10dd18be8c2231e0e1c9dcbc4981d.tar.gz
bcm5719-llvm-8f83a9072dd10dd18be8c2231e0e1c9dcbc4981d.zip
clang-format: [JS] Allow up to 3 empty lines in Google's JS style.
llvm-svn: 208404
Diffstat (limited to 'clang/lib/Format')
-rw-r--r--clang/lib/Format/Format.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index d72556debd4..4a66d7aa956 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -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;
OpenPOWER on IntegriCloud