.clang-format 3.01 KB
Newer Older
1 2 3
---
Language:        Cpp
# BasedOnStyle:  Google
Johann's avatar
Johann committed
4
# Generated with clang-format 5.0.0
5
AccessModifierOffset: -1
6
AlignAfterOpenBracket: Align
7
AlignConsecutiveAssignments: false
8
AlignConsecutiveDeclarations: false
Johann's avatar
Johann committed
9
AlignEscapedNewlines: Left
10 11 12 13 14 15 16 17 18
AlignOperands:   true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
19
AlwaysBreakAfterReturnType: None
20 21 22 23
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
BinPackArguments: true
BinPackParameters: true
24 25 26 27 28 29 30 31 32 33 34 35
BraceWrapping:
  AfterClass:      false
  AfterControlStatement: false
  AfterEnum:       false
  AfterFunction:   false
  AfterNamespace:  false
  AfterObjCDeclaration: false
  AfterStruct:     false
  AfterUnion:      false
  BeforeCatch:     false
  BeforeElse:      false
  IndentBraces:    false
Johann's avatar
Johann committed
36 37 38
  SplitEmptyFunction: true
  SplitEmptyRecord: true
  SplitEmptyNamespace: true
39 40
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
Johann's avatar
Johann committed
41
BreakBeforeInheritanceComma: false
42 43
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
Johann's avatar
Johann committed
44
BreakConstructorInitializers: BeforeColon
45 46
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
47 48
ColumnLimit:     80
CommentPragmas:  '^ IWYU pragma:'
Johann's avatar
Johann committed
49
CompactNamespaces: false
50 51 52 53
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: false
54
DerivePointerAlignment: false
55 56
DisableFormat:   false
ExperimentalAutoDetectBinPacking: false
Johann's avatar
Johann committed
57 58 59 60 61
FixNamespaceComments: true
ForEachMacros:
  - foreach
  - Q_FOREACH
  - BOOST_FOREACH
62 63 64 65 66 67 68
IncludeCategories:
  - Regex:           '^<.*\.h>'
    Priority:        1
  - Regex:           '^<.*'
    Priority:        2
  - Regex:           '.*'
    Priority:        3
69
IncludeIsMainRegex: '([-_](test|unittest))?$'
70 71 72
IndentCaseLabels: true
IndentWidth:     2
IndentWrappedFunctionNames: false
73 74
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
75 76 77 78 79 80 81 82
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd:   ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: false
Johann's avatar
Johann committed
83
PenaltyBreakAssignment: 2
84 85 86 87 88 89 90
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Right
91 92
ReflowComments:  true
SortIncludes:    false
Johann's avatar
Johann committed
93
SortUsingDeclarations: true
94
SpaceAfterCStyleCast: false
95
SpaceAfterTemplateKeyword: true
96 97 98 99 100 101 102 103 104 105 106 107 108 109
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles:  false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard:        Auto
TabWidth:        8
UseTab:          Never
...