-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
107 lines (90 loc) 路 2.64 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
# LLVM, Google, Chromium, Mozilla, WebKit
BasedOnStyle: LLVM
UseTab: Never
IndentWidth: 4
AccessModifierOffset: -4
ColumnLimit: 0
AllowShortFunctionsOnASingleLine: true
Cpp11BracedListStyle: true
BreakStringLiterals: true
IndentCaseLabels: true
IndentWrappedFunctionNames: false # void \n -- func() -> void \n func()
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 2
BreakBeforeTernaryOperators: true
BreakBeforeBinaryOperators: None
AlignAfterOpenBracket: true
AlignConsecutiveAssignments: true
BreakBeforeBraces: Custom
BraceWrapping:
IndentBraces: true
AfterClass: true
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: false
BeforeElse: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
# -- COMMENTS
ReflowComments: true
SpacesBeforeTrailingComments: 1
# -- INCLUDES
SortIncludes: true
IncludeBlocks: Regroup
SortUsingDeclarations: true
# -- NAMESPACES
NamespaceIndentation: All
CompactNamespaces: false
FixNamespaceComments: true
# -- SPACE Before
SpaceBeforeParens: ControlStatements
SpaceBeforeAssignmentOperators: true
# TODO: sda
# WARN: dsa
# SpaceBeforeRangeBasedForLoopColon: true # WARN: Not working
# SpaceBeforeCpp11BracedList: true # !!!: Not working
# SpaceBeforeCtorInitializerColon: false # ???: Not working
# SpaceBeforeInheritanceColon: false # !!!: Not working
# -- SPACE In
SpacesInCStyleCastParentheses: true
SpacesInParentheses: true
SpaceInEmptyParentheses: false
SpacesInContainerLiterals: false
SpacesInAngles: false
SpacesInSquareBrackets: false
# -- SPACE After
SpaceAfterTemplateKeyword: true
SpaceAfterCStyleCast: true
# -- CONSTRUCTOR Initializers
# -- BeforeColon, BeforeComma, AfterColon
ConstructorInitializerIndentWidth: 4
ConstructorInitializerAllOnOneLineOrOnePerLine: true
BreakConstructorInitializers: BeforeColon
# BreakInheritanceList: BeforeColon # !!!: Not working
# ---
# Language: Cpp
# # Standard: Cpp11
# DerivePointerAlignment: false
# PointerAlignment: Right
# BreakAfterJavaFieldAnnotations: false
# ForEachMacros: ['RANGES_FOR', 'FOREACH', 'BOOST_FOREACH']
# IndentPPDirectives: AfterHash
# # // CommentPragmas: "^ FOOBAR pragma:" # -- #include <vector> // FOOBAR pragma: keep
# ---
# Language: JavaScript
# JavaScriptQuotes: Single
# JavaScriptWrapImports: false
# ---
# Language: Proto
# DisableFormat: true
# ---
# Language: TextProto
# DisableFormat: true