Skip to content

Commit 2f05f51

Browse files
committed
🚧 add Clang-Tidy configuration
1 parent 1b06184 commit 2f05f51

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

.clang-format

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
#AccessModifierOffset: 2
2+
AlignAfterOpenBracket: Align
3+
AlignConsecutiveAssignments: false
4+
#AlignConsecutiveBitFields: false
5+
AlignConsecutiveDeclarations: false
6+
AlignConsecutiveMacros: false
7+
AlignEscapedNewlines: Right
8+
#AlignOperands: AlignAfterOperator
9+
AlignTrailingComments: true
10+
AllowAllArgumentsOnNextLine: false
11+
AllowAllConstructorInitializersOnNextLine: false
12+
AllowAllParametersOfDeclarationOnNextLine: false
13+
AllowShortBlocksOnASingleLine: Empty
14+
AllowShortCaseLabelsOnASingleLine: false
15+
#AllowShortEnumsOnASingleLine: true
16+
AllowShortFunctionsOnASingleLine: Empty
17+
AllowShortIfStatementsOnASingleLine: Never
18+
AllowShortLambdasOnASingleLine: Empty
19+
AllowShortLoopsOnASingleLine: false
20+
AlwaysBreakAfterReturnType: None
21+
AlwaysBreakBeforeMultilineStrings: false
22+
AlwaysBreakTemplateDeclarations: Yes
23+
BinPackArguments: false
24+
BinPackParameters: false
25+
#BitFieldColonSpacing: Both
26+
BreakBeforeBraces: Custom # or Allman
27+
BraceWrapping:
28+
AfterCaseLabel: true
29+
AfterClass: true
30+
AfterControlStatement: Always
31+
AfterEnum: true
32+
AfterFunction: true
33+
AfterNamespace: false
34+
AfterStruct: true
35+
AfterUnion: true
36+
AfterExternBlock: false
37+
BeforeCatch: true
38+
BeforeElse: true
39+
#BeforeLambdaBody: false
40+
#BeforeWhile: false
41+
SplitEmptyFunction: false
42+
SplitEmptyRecord: false
43+
SplitEmptyNamespace: false
44+
BreakBeforeTernaryOperators: true
45+
BreakConstructorInitializers: BeforeComma
46+
BreakStringLiterals: false
47+
ColumnLimit: 0
48+
CompactNamespaces: false
49+
ConstructorInitializerIndentWidth: 2
50+
Cpp11BracedListStyle: true
51+
PointerAlignment: Left
52+
FixNamespaceComments: true
53+
IncludeBlocks: Preserve
54+
#IndentCaseBlocks: false
55+
IndentCaseLabels: true
56+
IndentGotoLabels: false
57+
IndentPPDirectives: BeforeHash
58+
IndentWidth: 4
59+
KeepEmptyLinesAtTheStartOfBlocks: false
60+
MaxEmptyLinesToKeep: 1
61+
NamespaceIndentation: None
62+
ReflowComments: false
63+
SortIncludes: true
64+
SortUsingDeclarations: true
65+
SpaceAfterCStyleCast: false
66+
SpaceAfterLogicalNot: false
67+
SpaceAfterTemplateKeyword: false
68+
SpaceBeforeAssignmentOperators: true
69+
SpaceBeforeCpp11BracedList: false
70+
SpaceBeforeParens: ControlStatements
71+
SpaceBeforeRangeBasedForLoopColon: true
72+
SpaceBeforeSquareBrackets: false
73+
SpaceInEmptyBlock: false
74+
SpaceInEmptyParentheses: false
75+
SpacesBeforeTrailingComments: 2
76+
SpacesInAngles: false
77+
SpacesInCStyleCastParentheses: false
78+
SpacesInConditionalStatement: false
79+
SpacesInContainerLiterals: false
80+
SpacesInParentheses: false
81+
SpacesInSquareBrackets: false
82+
Standard: c++11
83+
TabWidth: 4
84+
UseTab: Never

0 commit comments

Comments
 (0)