-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
72 lines (60 loc) · 1.82 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
---
BasedOnStyle: Google
# Base
IndentWidth: 4
UseTab: Never
ColumnLimit: "160"
MaxEmptyLinesToKeep: "1"
BreakBeforeBraces: Allman
# Class definition
AccessModifierOffset: -4
# Constructor initializer list style
ConstructorInitializerAllOnOneLineOrOnePerLine: "false"
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
ConstructorInitializerIndentWidth: "0"
# Use T<pair<int, int>> instead of T<pair<int, int> >
Standard: Cpp03
# Pointer and reference alignment
PointerAlignment: Left
# namespace
NamespaceIndentation: All
AlignConsecutiveMacros: "true"
AlignConsecutiveAssignments: "false"
AlignConsecutiveDeclarations: "false"
AlignEscapedNewlines: Left
AlignOperands: "true"
AlignTrailingComments: "true"
AllowShortBlocksOnASingleLine: "false"
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: "false"
AlwaysBreakBeforeMultilineStrings: "false"
AlwaysBreakTemplateDeclarations: "Yes"
BinPackArguments: "false"
BinPackParameters: "false"
BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: "true"
Cpp11BracedListStyle: "true"
IncludeBlocks: Merge
JavaScriptQuotes: Double
JavaScriptWrapImports: "true"
KeepEmptyLinesAtTheStartOfBlocks: "false"
ReflowComments: "true"
SortIncludes: "true"
SortUsingDeclarations: "true"
SpaceAfterCStyleCast: "false"
SpaceAfterLogicalNot: "false"
SpaceAfterTemplateKeyword: "true"
SpaceBeforeAssignmentOperators: "true"
SpaceBeforeCpp11BracedList: "false"
SpaceBeforeCtorInitializerColon: "false"
SpaceBeforeInheritanceColon: "true"
SpaceBeforeRangeBasedForLoopColon: "true"
SpaceInEmptyParentheses: "false"
SpacesInAngles: "false"
SpacesInCStyleCastParentheses: "false"
SpacesInContainerLiterals: "false"
SpacesInParentheses: "false"
SpacesInSquareBrackets: "false"
# https://zed0.co.uk/clang-format-configurator/