.clang-format 1.54 KB
Newer Older
1 2 3 4 5 6
---
AccessModifierOffset: -2
ConstructorInitializerIndentWidth: 2
AlignEscapedNewlinesLeft: false
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
7 8
AllowShortBlocksOnASingleLine: false # otherwise the braces behind if(...) get moved up
AllowShortFunctionsOnASingleLine: false # change to SFS_Emtpy once it is supported
9 10 11 12
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakTemplateDeclarations: false
AlwaysBreakBeforeMultilineStrings: false
13 14 15
BreakBeforeBinaryOperators: true
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: true
16
BinPackParameters: true
17
ColumnLimit:     115   # needed for the modelines
18 19
ConstructorInitializerAllOnOneLineOrOnePerLine: true
DerivePointerBinding: false
20 21
#ExperimentalAutoDetectBinPacking: false
IndentCaseLabels: true
22
Language: Cpp
23 24 25 26 27 28
MaxEmptyLinesToKeep: 3
NamespaceIndentation: None
ObjCSpaceBeforeProtocolList: true
PenaltyBreakComment: 60
PenaltyBreakString: 1000
PenaltyBreakFirstLessLess: 120
29
PenaltyExcessCharacter: 50
30 31
PenaltyReturnTypeOnItsOwnLine: 60
PointerBindsToType: false
32
SpaceAfterCStyleCast: false
33 34 35 36 37
SpacesBeforeTrailingComments: 1
Cpp11BracedListStyle: false
Standard:        Cpp03
IndentWidth:     2
TabWidth:        2
38
UseTab:          Never
39 40 41 42 43 44
BreakBeforeBraces: Allman
IndentFunctionDeclarationAfterType: false
SpacesInParentheses: false
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
SpaceAfterControlStatementKeyword: false
45 46 47
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: Never
SpacesInSquareBrackets: false
48 49
...