-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
36 lines (36 loc) · 1.09 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
---
Language: Cpp
BasedOnStyle: Microsoft
TabWidth: 4
IndentWidth: 4
ConstructorInitializerIndentWidth: 8
ContinuationIndentWidth: 8
AccessModifierOffset: -4 # indentation of public: / private: modifiers
ColumnLimit: 120
UseTab: Never
AlignAfterOpenBracket: AlwaysBreak
AlignEscapedNewlines: Right
AlignConsecutiveMacros: true
AlignConsecutiveAssignments: true
AllowAllArgumentsOnNextLine: true
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterCaseLabel: true # when a case statement is followed by a curly bracket, put the bracket on the next line
AfterExternBlock: false # don't indent code after extern "C" statement
AfterNamespace: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: AfterColon
FixNamespaceComments: true
IndentPPDirectives: BeforeHash
IndentWrappedFunctionNames: true
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 2
PointerAlignment: Left
ReflowComments: true
SortUsingDeclarations: true
SpaceBeforeParens: Always