Skip to content

Commit ad035a2

Browse files
committed
feat: added clang-format
1 parent 8b0b5dc commit ad035a2

1 file changed

Lines changed: 74 additions & 0 deletions

File tree

.clang-format

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
BasedOnStyle: Microsoft
2+
AccessModifierOffset: '-4'
3+
AlignAfterOpenBracket: DontAlign
4+
AlignConsecutiveAssignments: 'true'
5+
AlignEscapedNewlines: Left
6+
AlignOperands: 'false'
7+
AlignTrailingComments: 'true'
8+
AllowAllArgumentsOnNextLine: 'false'
9+
AllowAllConstructorInitializersOnNextLine: 'false'
10+
AllowAllParametersOfDeclarationOnNextLine: 'false'
11+
AllowShortBlocksOnASingleLine: 'false'
12+
AllowShortCaseLabelsOnASingleLine: 'true'
13+
AllowShortFunctionsOnASingleLine: None
14+
AllowShortIfStatementsOnASingleLine: Never
15+
AllowShortLambdasOnASingleLine: None
16+
AlwaysBreakAfterReturnType: None
17+
AlwaysBreakBeforeMultilineStrings: 'false'
18+
AlwaysBreakTemplateDeclarations: 'Yes'
19+
BinPackArguments: 'false'
20+
BinPackParameters: 'true'
21+
BreakBeforeBinaryOperators: NonAssignment
22+
BreakBeforeBraces: Allman
23+
BreakBeforeTernaryOperators: 'false'
24+
BreakConstructorInitializers: AfterColon
25+
BreakInheritanceList: AfterColon
26+
BreakStringLiterals: 'false'
27+
CompactNamespaces: 'false'
28+
ConstructorInitializerAllOnOneLineOrOnePerLine: 'false'
29+
ConstructorInitializerIndentWidth: '4'
30+
Cpp11BracedListStyle: 'true'
31+
DerivePointerAlignment: 'false'
32+
FixNamespaceComments: 'false'
33+
IncludeBlocks: Regroup
34+
IndentCaseLabels: 'false'
35+
IndentPPDirectives: BeforeHash
36+
IndentWidth: '4'
37+
TabWidth: 4
38+
IndentWrappedFunctionNames: 'true'
39+
KeepEmptyLinesAtTheStartOfBlocks: 'false'
40+
Language: Cpp
41+
MacroBlockBegin: '0'
42+
MaxEmptyLinesToKeep: '2'
43+
NamespaceIndentation: All
44+
PenaltyExcessCharacter: '0'
45+
PenaltyReturnTypeOnItsOwnLine: '0'
46+
PointerAlignment: Left
47+
ReflowComments: 'false'
48+
SortIncludes: 'true'
49+
SortUsingDeclarations: 'true'
50+
SpaceAfterCStyleCast: 'false'
51+
SpaceAfterLogicalNot: 'false'
52+
SpaceAfterTemplateKeyword: 'false'
53+
SpaceBeforeAssignmentOperators: 'true'
54+
SpaceBeforeCpp11BracedList: 'false'
55+
SpaceBeforeCtorInitializerColon: 'true'
56+
SpaceBeforeInheritanceColon: 'true'
57+
SpaceBeforeParens: ControlStatements
58+
SpaceBeforeRangeBasedForLoopColon: 'true'
59+
SpaceInEmptyParentheses: 'false'
60+
SpacesBeforeTrailingComments: '1'
61+
SpacesInAngles: 'false'
62+
SpacesInCStyleCastParentheses: 'false'
63+
SpacesInContainerLiterals: 'false'
64+
SpacesInParentheses: 'false'
65+
SpacesInSquareBrackets: 'false'
66+
Standard: Auto
67+
UseTab: ForIndentation
68+
69+
BreakBeforeBraces: Custom
70+
BraceWrapping:
71+
BeforeLambdaBody: 'false'
72+
AfterCaseLabel: 'true'
73+
74+
PackConstructorInitializers: Never

0 commit comments

Comments
 (0)