2017-02-01 19:28:22 +00:00
|
|
|
---
|
|
|
|
BasedOnStyle: WebKit
|
|
|
|
Language: Cpp
|
|
|
|
AlignAfterOpenBracket: false
|
2017-03-31 15:21:48 +00:00
|
|
|
BreakBeforeBraces: Custom
|
|
|
|
BraceWrapping: {
|
|
|
|
AfterClass: 'true'
|
|
|
|
AfterControlStatement: 'true'
|
|
|
|
AfterEnum : 'true'
|
|
|
|
AfterFunction : 'true'
|
|
|
|
AfterNamespace : 'true'
|
|
|
|
AfterStruct : 'true'
|
|
|
|
AfterUnion : 'true'
|
|
|
|
BeforeCatch : 'true'
|
|
|
|
BeforeElse : 'true'
|
|
|
|
IndentBraces : 'false'
|
|
|
|
}
|
|
|
|
|
2017-02-01 19:28:22 +00:00
|
|
|
BreakConstructorInitializersBeforeComma: false
|
2017-02-13 13:59:34 +00:00
|
|
|
Cpp11BracedListStyle: true
|
2017-02-01 19:28:22 +00:00
|
|
|
ColumnLimit: 140
|
|
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
|
|
|
ExperimentalAutoDetectBinPacking: true
|
2017-04-01 07:17:50 +00:00
|
|
|
UseTab: Never
|
|
|
|
TabWidth: 4
|
|
|
|
IndentWidth: 4
|
2017-02-01 19:28:22 +00:00
|
|
|
Standard: Cpp11
|
|
|
|
PointerAlignment: Middle
|
|
|
|
MaxEmptyLinesToKeep: 2
|
|
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
|
|
#AllowShortFunctionsOnASingleLine: Inline
|
|
|
|
AllowShortFunctionsOnASingleLine: Empty
|
|
|
|
AlwaysBreakTemplateDeclarations: true
|
2017-02-13 13:59:34 +00:00
|
|
|
IndentCaseLabels: true
|
2017-02-01 19:28:22 +00:00
|
|
|
#SpaceAfterTemplateKeyword: true
|
|
|
|
SortIncludes: true
|
|
|
|
IncludeCategories:
|
|
|
|
- Regex: '^<[a-z_]+>'
|
|
|
|
Priority: 1
|
|
|
|
- Regex: '^<[a-z_]+.h>'
|
|
|
|
Priority: 2
|
2017-03-03 18:59:42 +00:00
|
|
|
- Regex: '^["<](common|ext|mysqlxx|daemon|zkutil)/'
|
2017-02-01 19:28:22 +00:00
|
|
|
Priority: 90
|
|
|
|
- Regex: '^["<](DB)/'
|
|
|
|
Priority: 100
|
|
|
|
- Regex: '^["<](Poco)/'
|
|
|
|
Priority: 50
|
2017-03-03 18:59:42 +00:00
|
|
|
- Regex: '^"'
|
|
|
|
Priority: 110
|
2017-02-01 19:28:22 +00:00
|
|
|
- Regex: '/'
|
|
|
|
Priority: 30
|
|
|
|
- Regex: '.*'
|
|
|
|
Priority: 40
|
|
|
|
ReflowComments: false
|
2017-04-06 21:30:02 +00:00
|
|
|
AlignEscapedNewlinesLeft: true
|
2017-02-01 19:28:22 +00:00
|
|
|
|
|
|
|
# Not changed:
|
|
|
|
AccessModifierOffset: -4
|
|
|
|
AlignConsecutiveAssignments: false
|
|
|
|
AlignOperands: false
|
|
|
|
AlignTrailingComments: false
|
|
|
|
AllowAllParametersOfDeclarationOnNextLine: true
|
|
|
|
AllowShortBlocksOnASingleLine: false
|
|
|
|
AllowShortCaseLabelsOnASingleLine: false
|
|
|
|
AllowShortIfStatementsOnASingleLine: false
|
|
|
|
AllowShortLoopsOnASingleLine: false
|
|
|
|
AlwaysBreakAfterDefinitionReturnType: None
|
|
|
|
AlwaysBreakBeforeMultilineStrings: false
|
|
|
|
BinPackArguments: false
|
|
|
|
BinPackParameters: false
|
|
|
|
BreakBeforeBinaryOperators: All
|
|
|
|
BreakBeforeTernaryOperators: true
|
|
|
|
CommentPragmas: '^ IWYU pragma:'
|
|
|
|
ConstructorInitializerIndentWidth: 4
|
|
|
|
ContinuationIndentWidth: 4
|
|
|
|
DerivePointerAlignment: false
|
|
|
|
DisableFormat: false
|
|
|
|
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
|
|
|
|
IndentWidth: 4
|
|
|
|
IndentWrappedFunctionNames: false
|
|
|
|
MacroBlockBegin: ''
|
|
|
|
MacroBlockEnd: ''
|
|
|
|
NamespaceIndentation: Inner
|
|
|
|
ObjCBlockIndentWidth: 4
|
|
|
|
ObjCSpaceAfterProperty: true
|
|
|
|
ObjCSpaceBeforeProtocolList: true
|
|
|
|
PenaltyBreakBeforeFirstCallParameter: 19
|
|
|
|
PenaltyBreakComment: 300
|
|
|
|
PenaltyBreakFirstLessLess: 120
|
|
|
|
PenaltyBreakString: 1000
|
|
|
|
PenaltyExcessCharacter: 1000000
|
|
|
|
PenaltyReturnTypeOnItsOwnLine: 60
|
|
|
|
SpaceAfterCStyleCast: false
|
|
|
|
SpaceBeforeAssignmentOperators: true
|
|
|
|
SpaceBeforeParens: ControlStatements
|
|
|
|
SpaceInEmptyParentheses: false
|
|
|
|
SpacesBeforeTrailingComments: 1
|
|
|
|
SpacesInContainerLiterals: true
|
|
|
|
SpacesInCStyleCastParentheses: false
|
|
|
|
SpacesInParentheses: false
|
|
|
|
SpacesInSquareBrackets: false
|
|
|
|
...
|
|
|
|
|