aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
blob: 777ad0a02f9df7b9038f47d875a987b4b655b25f (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
47
48
BasedOnStyle: LLVM

UseTab: Never
IndentWidth: 4
TabWidth: 4

BraceWrapping:
  AfterControlStatement: false
  AfterFunction: false
  AfterEnum: false
  AfterClass: false
  AfterStruct: false
  BeforeElse: false
  IndentBraces: false

BreakBeforeBraces: Attach

AllowShortBlocksOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Inline
AllowShortCaseLabelsOnASingleLine: true

SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
  AfterControlStatements: false
  BeforeNonEmptyParentheses: false
  AfterFunctionDefinitionName: true
SpacesBeforeTrailingComments: 3
SpaceInEmptyParentheses: false

SpacesInParentheses: true
SpacesInSquareBrackets: false

PointerAlignment: Left
DerivePointerAlignment: false

AlignConsecutiveDeclarations: true
AlignConsecutiveAssignments: true
AlignConsecutiveMacros: false

ColumnLimit: 0  # Do not reflow long lines/comments

SortIncludes: Never
IncludeBlocks: Preserve

IndentCaseLabels: false