summaryrefslogtreecommitdiff
path: root/.clang-format
blob: 49ef4ad41fe8c33c473eb7214213f165d0eb0257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
Language: C
BasedOnStyle: LLVM

InsertNewlineAtEOF: true

IndentWidth: 2
TabWidth: 2
UseTab: Never
IndentCaseLabels: true

SpaceBeforeParens: ControlStatements
SpacesInParentheses: false
SpacesInCStyleCastParentheses: false
SpaceAfterCStyleCast: false
BreakBeforeBraces: Attach

ColumnLimit: 80
AllowShortFunctionsOnASingleLine: None
AllowShortBlocksOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
BinPackParameters: false
BinPackArguments: false

PointerAlignment: Right

AlignEscapedNewlines: Right
IndentPPDirectives: AfterHash

SortIncludes: true
IncludeBlocks: Merge
IncludeCategories:
  - Regex:           '^<chafa/.*'
    Priority:        1
  - Regex:           '^<glib*'
    Priority:        2
  - Regex:           '^<sys/.*'
    Priority:        3
  - Regex:           '^<.*\.h>'
    Priority:        4
  - Regex:           '^".*"'
    Priority:        5
  - Regex:           '.*'
    Priority:        6
...