-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
90 lines (89 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
88
89
90
# Alex Cui's Code Style Rules 3.4 (For clang-format)
# Copyright (c) 2018-2020 Alex Cui.
# Licensed by CC BY-NC-SA 4.0
# This guide is based on Google C++ Style Guide
---
Language: Cpp
BasedOnStyle: Google
#DisableFormat:
AccessModifierOffset: -4
#AlignAfterOpenBracket:
#AlignConsecutiveAssignments:
#AlignConsecutiveDeclarations:
#AlignEscapedNewlines:
#AlignOperands:
AlignTrailingComments: false
#AllowShortBlocksOnASingleLine:
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: None
#AllowShortIfStatementsOnASingleLine:
#AllowShortLambdasOnASingleLine:
#AllowShortLoopsOnASingleLine:
#AlwaysBreakAfterReturnType:
#AlwaysBreakBeforeMultilineStrings:
#AlwaysBreakTemplateDeclarations:
#BinPackArguments:
#BinPackParameters:
BreakBeforeBraces: Custom
BraceWrapping:
# AfterCaseLabel:
# AfterClass:
# AfterControlStatement:
# AfterEnum:
# AfterFunction:
# AfterNamespace:
# AfterStruct:
# AfterUnion:
# AfterExternBlock:
BeforeCatch: true
BeforeElse: true
# IndentBraces:
# SplitEmptyFunction:
# SplitEmptyRecord:
# SplitEmptyNamespace:
#BreakBeforeBinaryOperators:
#BreakBeforeTernaryOperators:
#BreakConstructorInitializers: #
#BreakInheritanceList: #
#BreakStringLiterals:
ColumnLimit: 80
#CommentPragmas:
#CompactNamespaces:
#ConstructorInitializerAllOnOneLineOrOnePerLine:
#ConstructorInitializerIndentWidth:
#ContinuationIndentWidth:
#DerivePointerAlignment:
#ExperimentalAutoDetectBinPacking:
#ExperimentalAutoDetectBinPacking:
#FixNamespaceComments:
#ForEachMacros:
#TypenameMacros:
#IndentCaseLabels:
IndentPPDirectives: None
IndentWidth: 4
#IndentWrappedFunctionNames:
#KeepEmptyLinesAtTheStartOfBlocks:
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
#PointerAlignment:
#SortIncludes:
#SortUsingDeclarations:
#SpaceAfterCStyleCast:
#SpaceAfterLogicalNot:
#SpaceAfterTemplateKeyword:
#SpaceBeforeAssignmentOperators:
#SpaceBeforeCpp11BracedList:
#SpaceBeforeCtorInitializerColon:
#SpaceBeforeInheritanceColon:
#SpaceBeforeParens:
#SpaceBeforeRangeBasedForLoopColon:
#SpaceInEmptyParentheses:
SpacesBeforeTrailingComments: 1
#SpacesInAngles:
#SpacesInCStyleCastParentheses:
#SpacesInContainerLiterals:
#SpacesInParentheses:
#SpacesInSquareBrackets:
Standard: Cpp11
TabWidth: 4
UseTab: false