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
This commit is contained in:
parent
8527ab0ad2
commit
dcb038d4f2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue