Debian Codegraph @

.clang-format

raw
1 # Note: this is an VERY rough approximation of labwc's coding style (see
2 # CONTRIBUTING.md) and is intended only as a hint for IDE formatting
3 # aids. DO NOT rely on clang-format or your IDE for correct formatting;
4 # always check the result manually (and run ./scripts/check)!
5 #
6 # Some notable things that clang-format gets wrong:
7 # - no support for double-indenting before an opening brace
8 # - does not always round continuation indent/alignment to tab stops
9
10 BasedOnStyle: LLVM
11 UseTab: Always
12 IndentWidth: 8
13 ContinuationIndentWidth: 8
14 AlignAfterOpenBracket: DontAlign
15 AlignOperands: false
16 AlwaysBreakAfterDefinitionReturnType: true
17 BreakBeforeBinaryOperators: NonAssignment
18 BreakBeforeBraces: Linux
19 IndentCaseLabels: false
20 PenaltyBreakOpenParenthesis: 100
21 PenaltyReturnTypeOnItsOwnLine: 500
22 SpaceBeforeParens: ControlStatementsExceptControlMacros
23 ForEachMacros: ['for_each_view',
24 'for_each_view_reverse',
25 'wl_array_for_each',
26 'wl_list_for_each',
27 'wl_list_for_each_reverse',
28 'wl_list_for_each_reverse_safe',
29 'wl_list_for_each_safe']
30 IncludeCategories:
31 - Regex: '<.*>'
32 - Regex: '.*'