Permalink
Browse files

Imported clang-format from Dashel.

  • Loading branch information...
stephanemagnenat committed Jan 22, 2018
1 parent 8c377ac commit 6bcafd7fed865b8696428f6340a6b2e94d13f54e
Showing with 63 additions and 0 deletions.
  1. +63 −0 .clang-format
@@ -0,0 +1,63 @@
---
BasedOnStyle: Mozilla
AccessModifierOffset: '-4'
AlignConsecutiveAssignments: 'false'
AlignConsecutiveDeclarations: 'false'
AlignEscapedNewlinesLeft: 'true'
AlignOperands: false
AlignTrailingComments: 'false'
AllowAllParametersOfDeclarationOnNextLine: 'false'
AllowShortBlocksOnASingleLine: 'false'
AllowShortCaseLabelsOnASingleLine: 'true'
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: 'false'
AllowShortLoopsOnASingleLine: 'false'
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakTemplateDeclarations: 'true'
BinPackArguments: 'false'
BinPackParameters: 'true'
BreakBeforeBraces: Custom
BreakBeforeTernaryOperators: 'true'
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
Cpp11BracedListStyle: false
IndentCaseLabels: 'true'
Language: Cpp
MaxEmptyLinesToKeep: '2'
NamespaceIndentation: All
PointerAlignment: Left
ReflowComments: false
SortIncludes: 'false'
SpaceBeforeAssignmentOperators: 'true'
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: 'false'
Standard: Auto
TabWidth: 4
IndentWidth: 4
UseTab: Always
ColumnLimit: 0
#IndentPPDirectives: AfterHash
BreakConstructorInitializers: AfterColon
BreakBeforeInheritanceComma : false
ConstructorInitializerIndentWidth: 4
SpacesInCStyleCastParentheses: false
SpacesBeforeTrailingComments: 1
ExperimentalAutoDetectBinPacking: true
AllowAllParametersOfDeclarationOnNextLine: false
ContinuationIndentWidth: 4
BraceWrapping:
SplitEmptyFunction: false
AfterEnum: true
AfterControlStatement: true
AfterStruct: true
AfterClass: true
AfterFunction: true
AfterNamespace: true
AfterUnion: true
#AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
AlignAfterOpenBracket: DontAlign
BreakBeforeBinaryOperators: NonAssignment
...

0 comments on commit 6bcafd7

Please sign in to comment.