summaryrefslogtreecommitdiffstatshomepage
path: root/.clang-format
blob: 4ce6542778d901574e2877f35ff09ef3ec5758fd (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
30
31
32
33
---
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: '^<(common|lexer|parser)\/'
    Priority: 2
  - Regex: '^<benchmark\/'
    Priority: 3
  - Regex: '^<boost\/'
    Priority: 4
  - Regex: '.*'
    Priority: 5
...