summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2016-12-14 16:09:29 +0000
committerSylvestre Ledru <sylvestre@debian.org>2016-12-14 16:09:29 +0000
commitdcb038d4f282a1cc055d94bc456acb3b4857ac08 (patch)
tree1ab562309339f51f1370e06cb40f123b6fbf97b6 /clang/lib/Format
parent8527ab0ad2ee3f631de2e4e1f35e60018146df4c (diff)
downloadbcm5719-llvm-dcb038d4f282a1cc055d94bc456acb3b4857ac08.tar.gz
bcm5719-llvm-dcb038d4f282a1cc055d94bc456acb3b4857ac08.zip
Update the default of the Mozilla coding style
Summary: I also proposed the change in Firefox .clang-format file: https://bugzilla.mozilla.org/show_bug.cgi?id=1322321 Reviewers: klimek Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D27557 llvm-svn: 289660
Diffstat (limited to 'clang/lib/Format')
-rw-r--r--clang/lib/Format/Format.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 4879d1e818c..bd19b48db3f 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -655,10 +655,12 @@ FormatStyle getMozillaStyle() {
MozillaStyle.AllowAllParametersOfDeclarationOnNextLine = false;
MozillaStyle.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Inline;
MozillaStyle.AlwaysBreakAfterReturnType =
- FormatStyle::RTBS_TopLevelDefinitions;
+ FormatStyle::RTBS_TopLevel;
MozillaStyle.AlwaysBreakAfterDefinitionReturnType =
FormatStyle::DRTBS_TopLevel;
MozillaStyle.AlwaysBreakTemplateDeclarations = true;
+ MozillaStyle.BinPackParameters = false;
+ MozillaStyle.BinPackArguments = false;
MozillaStyle.BreakBeforeBraces = FormatStyle::BS_Mozilla;
MozillaStyle.BreakConstructorInitializersBeforeComma = true;
MozillaStyle.ConstructorInitializerIndentWidth = 2;
OpenPOWER on IntegriCloud