-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
87 lines (82 loc) · 2.28 KB
/
.clang-format
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
BasedOnStyle: LLVM
IndentWidth: 4
---
Language: Cpp
AccessModifierOffset: -4
Standard: Auto
AlwaysBreakTemplateDeclarations: No
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: Consecutive # None
AlignConsecutiveAssignments: Consecutive # None
AlignConsecutiveBitFields: Consecutive # None
AlignConsecutiveDeclarations: Consecutive # None
AlignEscapedNewlines: Left
AlignOperands: AlignAfterOperator # Align
AllowShortLambdasOnASingleLine: None # All
AlwaysBreakBeforeMultilineStrings: true # false
AlwaysBreakTemplateDeclarations: Yes # MultiLine
BreakBeforeBinaryOperators: NonAssignment # None
BreakConstructorInitializers: BeforeComma # BeforeColon
AlwaysBreakTemplateDeclarations: No
SortIncludes: false
EmptyLineAfterAccessModifier: Leave # All
IndentPPDirectives: AfterHash
ColumnLimit: 0 # 120
CompactNamespaces: true # false
ConstructorInitializerAllOnOneLineOrOnePerLine: true # false
ForEachMacros:
- for
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Regroup # Preserve
IncludeCategories:
- Regex: '.*\.generated\.h'
Priority: 100
- Regex: '.*(PCH).*'
Priority: -1
- Regex: '".*"'
Priority: 1
- Regex: '^<.*\.(h)>'
Priority: 3
- Regex: '^<.*>'
Priority: 4
IncludeIsMainRegex: '([-_](test|unittest))?$'
IndentCaseLabels: true # false
KeepEmptyLinesAtTheStartOfBlocks: false # true
NamespaceIndentation: All #None
ObjCBinPackProtocolList: Never # Auto
PenaltyBreakBeforeFirstCallParameter: 1 # 19
PenaltyReturnTypeOnItsOwnLine: 200 # 1000
PointerAlignment: Left # Right
RawStringFormats:
- Language: Cpp
Delimiters:
- cc
- CC
- cpp
- Cpp
- CPP
- 'c++'
- 'C++'
CanonicalDelimiter: ''
BasedOnStyle: google
- Language: TextProto
Delimiters:
- pb
- PB
- proto
- PROTO
EnclosingFunctions:
- EqualsProto
- EquivToProto
- PARSE_PARTIAL_TEXT_PROTO
- PARSE_TEST_PROTO
- PARSE_TEXT_PROTO
- ParseTextOrDie
- ParseTextProtoOrDie
CanonicalDelimiter: ''
SpaceAfterTemplateKeyword: false
SpacesBeforeTrailingComments: 2
TabWidth: 4
...