diff options
author | Daniel Jasper <djasper@google.com> | 2014-05-09 10:28:58 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-05-09 10:28:58 +0000 |
commit | 8f83a9072dd10dd18be8c2231e0e1c9dcbc4981d (patch) | |
tree | 178443e27661cc99102fb373af1032eeb3d46c8e /clang/lib/Format | |
parent | 8951908218ce58133794f241a7fbf4b2bd58de40 (diff) | |
download | bcm5719-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.cpp | 2 |
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; |