.clang-format 2.76 KB
Newer Older
1 2 3
---
Language:        Cpp
# BasedOnStyle:  Google
4
# Generated with clang-format 4.0.1
5
AccessModifierOffset: -1
6
AlignAfterOpenBracket: Align
7
AlignConsecutiveAssignments: false
8
AlignConsecutiveDeclarations: false
9 10 11 12 13 14 15 16 17 18
AlignEscapedNewlinesLeft: true
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
36 37 38 39
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
40 41
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
42 43 44 45 46 47
ColumnLimit:     80
CommentPragmas:  '^ IWYU pragma:'
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: false
48
DerivePointerAlignment: false
49 50 51
DisableFormat:   false
ExperimentalAutoDetectBinPacking: false
ForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
52 53 54 55 56 57 58
IncludeCategories:
  - Regex:           '^<.*\.h>'
    Priority:        1
  - Regex:           '^<.*'
    Priority:        2
  - Regex:           '.*'
    Priority:        3
59
IncludeIsMainRegex: '([-_](test|unittest))?$'
60 61 62
IndentCaseLabels: true
IndentWidth:     2
IndentWrappedFunctionNames: false
63 64
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd:   ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: false
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Right
80 81
ReflowComments:  true
SortIncludes:    false
82
SpaceAfterCStyleCast: false
83
SpaceAfterTemplateKeyword: true
84 85 86 87 88 89 90 91 92 93 94 95 96 97
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles:  false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard:        Auto
TabWidth:        8
UseTab:          Never
...