summaryrefslogtreecommitdiff
path: root/lib/Format/Format.cpp
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
commit656b212af7aa75161499c34236ff5cd173f47fc0 (patch)
tree7462ece675a9b88546c880bc2224a8bd3c530ee6 /lib/Format/Format.cpp
parentc86e76ef0ac826b1628a477286248eaa7f55a7e4 (diff)
downloadclang-656b212af7aa75161499c34236ff5cd173f47fc0.tar.gz
clang-656b212af7aa75161499c34236ff5cd173f47fc0.tar.bz2
clang-656b212af7aa75161499c34236ff5cd173f47fc0.tar.xz
clang-format: [JS] Allow up to 3 empty lines in Google's JS style.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208404 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r--lib/Format/Format.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp
index d72556debd..4a66d7aa95 100644
--- a/lib/Format/Format.cpp
+++ b/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;