| 1 |
--- |
| 2 |
Language: Cpp |
| 3 |
Standard: Cpp11 |
| 4 |
BasedOnStyle: Google |
| 5 |
|
| 6 |
# Line breaks |
| 7 |
ColumnLimit: 100 |
| 8 |
BreakBeforeBraces: Attach |
| 9 |
AlwaysBreakTemplateDeclarations: false |
| 10 |
AlwaysBreakBeforeMultilineStrings: false |
| 11 |
BreakBeforeBinaryOperators: NonAssignment |
| 12 |
BreakBeforeTernaryOperators: true |
| 13 |
PenaltyBreakBeforeFirstCallParameter: 19 |
| 14 |
PenaltyBreakComment: 300 |
| 15 |
PenaltyBreakString: 1000 |
| 16 |
PenaltyBreakFirstLessLess: 120 |
| 17 |
PenaltyExcessCharacter: 1000000 |
| 18 |
PenaltyReturnTypeOnItsOwnLine: 60 |
| 19 |
AllowShortBlocksOnASingleLine: false |
| 20 |
AllowShortCaseLabelsOnASingleLine: false |
| 21 |
AllowShortIfStatementsOnASingleLine: false |
| 22 |
AllowShortLoopsOnASingleLine: false |
| 23 |
AllowShortFunctionsOnASingleLine: None |
| 24 |
BinPackArguments: false |
| 25 |
BinPackParameters: false |
| 26 |
AllowAllParametersOfDeclarationOnNextLine: true |
| 27 |
BreakConstructorInitializers: BeforeComma |
| 28 |
ConstructorInitializerAllOnOneLineOrOnePerLine: true |
| 29 |
MaxEmptyLinesToKeep: 1 |
| 30 |
KeepEmptyLinesAtTheStartOfBlocks: false |
| 31 |
|
| 32 |
# Indentation |
| 33 |
UseTab: Never |
| 34 |
IndentWidth: 4 |
| 35 |
TabWidth: 4 |
| 36 |
AccessModifierOffset: -4 |
| 37 |
ConstructorInitializerIndentWidth: 8 |
| 38 |
IndentCaseLabels: false |
| 39 |
IndentFunctionDeclarationAfterType: false |
| 40 |
NamespaceIndentation: None |
| 41 |
|
| 42 |
# Spaces |
| 43 |
SpacesBeforeTrailingComments: 1 |
| 44 |
SpacesInParentheses: false |
| 45 |
SpacesInAngles: false |
| 46 |
SpaceInEmptyParentheses: false |
| 47 |
SpacesInCStyleCastParentheses: false |
| 48 |
SpacesInContainerLiterals: true |
| 49 |
SpaceBeforeAssignmentOperators: true |
| 50 |
SpaceBeforeParens: ControlStatements |
| 51 |
PointerAlignment: Left |
| 52 |
DerivePointerAlignment: false |
| 53 |
AlignEscapedNewlines: DontAlign |
| 54 |
AlignTrailingComments: true |
| 55 |
Cpp11BracedListStyle: true |
| 56 |
|
| 57 |
# Includes |
| 58 |
IncludeBlocks: Regroup |
| 59 |
IncludeCategories: |
| 60 |
- Regex: '^"' |
| 61 |
Priority: 1 |
| 62 |
- Regex: '^<K' |
| 63 |
Priority: 2 |
| 64 |
- Regex: '^<Q' |
| 65 |
Priority: 3 |
| 66 |
- Regex: '^<' |
| 67 |
Priority: 4 |
| 68 |
|
| 69 |
# Misc |
| 70 |
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] |
| 71 |
... |
| 72 |
|