aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.clang-format
blob: 0ff8777ec7e88ae399562825c889014fdce75171 (plain) (blame)
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
---
Language: Cpp
BasedOnStyle: Chromium

IndentWidth: 4

AccessModifierOffset: -4
AlignAfterOpenBracket: BlockIndent
AlignConsecutiveMacros: AcrossComments
AllowShortFunctionsOnASingleLine: Empty
BinPackArguments: false
BinPackParameters: OnePerLine
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
BreakStringLiterals: false
ColumnLimit: 100
IncludeBlocks: Regroup
PenaltyReturnTypeOnItsOwnLine: 1000
SpacesBeforeTrailingComments: 1
WrapNamespaceBodyWithEmptyLines: Always

IncludeCategories:
  - Regex: '^".+'
    Priority: 1
  - Regex: '^<.*\.h>'
    Priority: 2
  - Regex: '.*'
    Priority: 3
...