diff options
| author | Birunthan Mohanathas <birunthan@mohanathas.com> | 2015-06-29 15:18:58 +0000 |
|---|---|---|
| committer | Birunthan Mohanathas <birunthan@mohanathas.com> | 2015-06-29 15:18:58 +0000 |
| commit | a081002bdd954673e15dcd4f6fae8df356d7906e (patch) | |
| tree | 0a0f9c6f572f22257c43b51e16c6f54da3a2f4a8 | |
| parent | aa694a65a41a1363751a56b17142f0919d82868e (diff) | |
| download | bcm5719-llvm-a081002bdd954673e15dcd4f6fae8df356d7906e.tar.gz bcm5719-llvm-a081002bdd954673e15dcd4f6fae8df356d7906e.zip | |
clang-format: Adjust Mozilla style defaults
Summary: This makes the Mozilla style defaults more compliant with the Mozilla style guide. A few options were removed in order to use the LLVM style defaults.
Differential Revision: http://reviews.llvm.org/D10771
llvm-svn: 240957
| -rw-r--r-- | clang/lib/Format/Format.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 6a8a8480823..edc44d3e3df 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -462,15 +462,17 @@ FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language) { FormatStyle getMozillaStyle() { FormatStyle MozillaStyle = getLLVMStyle(); MozillaStyle.AllowAllParametersOfDeclarationOnNextLine = false; + MozillaStyle.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Inline; + MozillaStyle.AlwaysBreakTemplateDeclarations = true; + MozillaStyle.BreakConstructorInitializersBeforeComma = true; + MozillaStyle.ConstructorInitializerIndentWidth = 2; + MozillaStyle.ContinuationIndentWidth = 2; MozillaStyle.Cpp11BracedListStyle = false; - MozillaStyle.ConstructorInitializerAllOnOneLineOrOnePerLine = true; - MozillaStyle.DerivePointerAlignment = true; MozillaStyle.IndentCaseLabels = true; MozillaStyle.ObjCSpaceAfterProperty = true; MozillaStyle.ObjCSpaceBeforeProtocolList = false; MozillaStyle.PenaltyReturnTypeOnItsOwnLine = 200; MozillaStyle.PointerAlignment = FormatStyle::PAS_Left; - MozillaStyle.Standard = FormatStyle::LS_Cpp03; return MozillaStyle; } |

