| 1 |
BasedOnStyle: GNU |
| 2 |
Language: Cpp |
| 3 |
|
| 4 |
AlignAfterOpenBracket: Align |
| 5 |
AlignConsecutiveAssignments: None |
| 6 |
AlignConsecutiveBitFields: AcrossEmptyLinesAndComments |
| 7 |
AlignConsecutiveDeclarations: None |
| 8 |
AlignConsecutiveMacros: Consecutive |
| 9 |
AlignEscapedNewlines: Right |
| 10 |
AlignOperands: AlignAfterOperator |
| 11 |
AlignTrailingComments: true |
| 12 |
AllowAllArgumentsOnNextLine: false |
| 13 |
AllowAllParametersOfDeclarationOnNextLine: false |
| 14 |
AllowShortBlocksOnASingleLine: false |
| 15 |
AllowShortCaseLabelsOnASingleLine: false |
| 16 |
AllowShortEnumsOnASingleLine: false |
| 17 |
AllowShortFunctionsOnASingleLine: None |
| 18 |
AllowShortIfStatementsOnASingleLine: Never |
| 19 |
AllowShortLoopsOnASingleLine: false |
| 20 |
AlwaysBreakAfterReturnType: TopLevel |
| 21 |
AlwaysBreakBeforeMultilineStrings: false |
| 22 |
BreakBeforeBinaryOperators: None |
| 23 |
BreakBeforeBraces: Custom |
| 24 |
BinPackArguments: false |
| 25 |
BinPackParameters: false |
| 26 |
BitFieldColonSpacing: Both |
| 27 |
BraceWrapping: |
| 28 |
AfterCaseLabel: true |
| 29 |
AfterEnum: true |
| 30 |
AfterFunction: true |
| 31 |
AfterStruct: true |
| 32 |
BeforeElse: false |
| 33 |
BeforeWhile: false |
| 34 |
BreakBeforeTernaryOperators: true |
| 35 |
BreakStringLiterals: true |
| 36 |
ForEachMacros: ['ITER_UP'] |
| 37 |
IncludeBlocks: Preserve |
| 38 |
IndentCaseBlocks: true |
| 39 |
IndentCaseLabels: true |
| 40 |
IndentGotoLabels: false |
| 41 |
IndentWidth: 4 |
| 42 |
#clang-format 13 |
| 43 |
#PPIndentWidth: 1 |
| 44 |
PointerAlignment: Right |
| 45 |
#clang-format 14 |
| 46 |
#QualifierAlignment: Left |
| 47 |
#QualifierOrder: ['static', 'inline', 'const', 'volatile', 'type'] |
| 48 |
ReflowComments: false |
| 49 |
#clang-format 13 |
| 50 |
#SortIncludes: CaseSensitive |
| 51 |
SortIncludes: true |
| 52 |
SpaceAfterCStyleCast: true |
| 53 |
SpaceAfterLogicalNot: false |
| 54 |
SpaceAroundPointerQualifiers: Both |
| 55 |
SpaceBeforeAssignmentOperators: true |
| 56 |
SpaceBeforeCaseColon: false |
| 57 |
SpaceBeforeParens: Always |
| 58 |
SpaceBeforeSquareBrackets: false |
| 59 |
SpaceInEmptyBlock: true |
| 60 |
SpaceInEmptyParentheses: false |
| 61 |
SpacesInCStyleCastParentheses: false |
| 62 |
SpacesInConditionalStatement: false |
| 63 |
SpacesInContainerLiterals: false |
| 64 |
SpacesInParentheses: false |
| 65 |
SpacesInSquareBrackets: false |
| 66 |
StatementMacros: [ |
| 67 |
'G_DEFINE_ABSTRACT_TYPE', |
| 68 |
'G_DEFINE_BOXED_TYPE', |
| 69 |
'G_DEFINE_FINAL_TYPE', |
| 70 |
'G_DEFINE_FINAL_TYPE_WITH_CODE', |
| 71 |
'G_DEFINE_FINAL_TYPE_WITH_PRIVATE', |
| 72 |
'G_DEFINE_INTERFACE', |
| 73 |
'G_DEFINE_TYPE', |
| 74 |
'G_DEFINE_TYPE_WITH_PRIVATE', |
| 75 |
'G_DEFINE_TYPE_WITH_CODE', |
| 76 |
] |
| 77 |
TabWidth: 8 |
| 78 |
TypenameMacros: [ |
| 79 |
'g_autoptr', |
| 80 |
'g_auto', |
| 81 |
'g_autofree', |
| 82 |
] |
| 83 |
UseTab: Never |
| 84 |
#WhitespaceSensitiveMacros: ['C_', 'NC_', 'N_', '_',] |
| 85 |
|
| 86 |
# Our column limit is actually 80, but setting that results in clang-format |
| 87 |
# making a lot of dubious hanging-indent choices; disable it and assume the |
| 88 |
# developer will line wrap appropriately. clang-format will still check |
| 89 |
# existing hanging indents. |
| 90 |
ColumnLimit: 0 |