summaryrefslogtreecommitdiffstats
path: root/.clang-format
blob: 95d3b7380fc394e26732fd029e1c0edaa7478f5f (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
---
AlignAfterOpenBracket: true
AlignEscapedNewlines: Left
AlignTrailingComments: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: false
BasedOnStyle: LLVM
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Linux
BreakBeforeTernaryOperators: false
BreakStringLiterals: false
ColumnLimit: 120
CommentPragmas:  ^ cppcheck-supress
ContinuationIndentWidth: 8
IncludeBlocks:   Regroup
IncludeCategories:
  - Regex:           '"rtrlib/.+"'
    Priority:        1
  - Regex:           '"third-party/.+"'
    Priority:        2
  - Regex:           '.+_private.+'
    Priority:        0
  - Regex:           '"[[:alnum:]_]+"'
    Priority:        0
  - Regex:           '".+"'
    Priority:        0
  - Regex:           '<.+>'
    Priority:        3
IncludeIsMainRegex: '(private)?$'
IndentCaseLabels: false
IndentWidth: 8
KeepEmptyLinesAtTheStartOfBlocks: false
Language: Cpp
MaxEmptyLinesToKeep: 1
PenaltyBreakAssignment: 10
PenaltyBreakBeforeFirstCallParameter: 30
PenaltyBreakComment: 10
PenaltyBreakFirstLessLess: 0
PenaltyBreakString: 10
PenaltyExcessCharacter: 100
ReflowComments:  false
SortIncludes:    true
SpaceAfterCStyleCast: false
UseTab: Always