mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-19 20:38:10 +02:00
clang-format taken from libinput, except for ColumnLimit: 100 and some macro definitions (which don't all have an effect anyway...) It's not perfect but good enough and at least consistent. Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/383>
79 lines
2.2 KiB
YAML
79 lines
2.2 KiB
YAML
AlignAfterOpenBracket: Align
|
|
# This option we want but it's frequently broken and causes bad
|
|
# misalignment. The canary is wheel_click_count_parser, if that works
|
|
# we can actually enable it.
|
|
# AlignArrayOfStructures: Left
|
|
AlignConsecutiveAssignments: false
|
|
AlignConsecutiveDeclarations: false
|
|
AlignConsecutiveMacros: true
|
|
AlignConsecutiveShortCaseStatements:
|
|
Enabled: true
|
|
AcrossEmptyLines: false
|
|
AcrossComments: true
|
|
AlignCaseColons: false
|
|
AlignEscapedNewlines: Right
|
|
AlignOperands: Align
|
|
AlignTrailingComments: true
|
|
AllowAllArgumentsOnNextLine: false
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
AllowShortBlocksOnASingleLine: false
|
|
AllowShortCaseLabelsOnASingleLine: false
|
|
AllowShortFunctionsOnASingleLine: false
|
|
AllowShortIfStatementsOnASingleLine: false
|
|
AllowShortLoopsOnASingleLine: false
|
|
AlwaysBreakBeforeMultilineStrings: true
|
|
BinPackArguments: false
|
|
BinPackParameters: OnePerLine
|
|
BraceWrapping:
|
|
AfterFunction: true
|
|
BreakAfterReturnType: All
|
|
BreakBeforeBraces: Custom
|
|
BreakStringLiterals: false
|
|
ColumnLimit: 100
|
|
ContinuationIndentWidth: 8
|
|
Cpp11BracedListStyle: false
|
|
IncludeBlocks: Regroup
|
|
IncludeCategories:
|
|
- Regex: '^(<|")config\.h(>|")'
|
|
Priority: 0
|
|
SortPriority: 0
|
|
- Regex: '^<.*'
|
|
Priority: 1
|
|
SortPriority: 0
|
|
- Regex: '^"util-.*'
|
|
Priority: 2
|
|
SortPriority: 0
|
|
- Regex: '.*'
|
|
Priority: 3
|
|
SortPriority: 0
|
|
IndentCaseLabels: false
|
|
IndentGotoLabels: false
|
|
IndentWidth: 8
|
|
MaxEmptyLinesToKeep: 1
|
|
PointerAlignment: Right
|
|
ReflowComments: true
|
|
RemoveEmptyLinesInUnwrappedLines: true
|
|
RemoveParentheses: MultipleParentheses
|
|
RemoveSemicolon: true
|
|
SkipMacroDefinitionBody: true
|
|
SortIncludes: true
|
|
SpaceAfterCStyleCast: false
|
|
SpaceAfterLogicalNot: false
|
|
SpaceBeforeAssignmentOperators: true
|
|
SpaceBeforeCaseColon: false
|
|
SpaceBeforeParens: ControlStatementsExceptControlMacros
|
|
SpacesInContainerLiterals: true
|
|
SpacesInParens: Custom
|
|
TabWidth: 8
|
|
UseTab: ForContinuationAndIndentation
|
|
|
|
ForEachMacros:
|
|
- ARRAY_FOR_EACH
|
|
- list_for_each
|
|
- list_for_each_safe
|
|
- with_client
|
|
- with_server
|
|
Macros:
|
|
- "CASE_RETURN_STRING(s)=case s: return s"
|
|
- "OBJECT_IMPLEMENT_CREATE(o)=void o(void)"
|
|
- "_printf_(a, b)=__attribute__((printf(a, b)))"
|