Skip to content

Commit be2b073

Browse files
committed
Adds clang-format config file.
1 parent 9f1643d commit be2b073

File tree

2 files changed

+88
-1
lines changed

2 files changed

+88
-1
lines changed

.clang-format

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
---
2+
Language: Cpp
3+
AccessModifierOffset: -4
4+
AlignAfterOpenBracket: AlwaysBreak
5+
AlignConsecutiveAssignments: false
6+
AlignConsecutiveDeclarations: false
7+
AlignEscapedNewlines: DontAlign
8+
AlignOperands: false
9+
AlignTrailingComments: false
10+
AllowAllArgumentsOnNextLine: false
11+
AllowAllParametersOfDeclarationOnNextLine: false
12+
AllowShortBlocksOnASingleLine: false
13+
AllowShortCaseLabelsOnASingleLine: false
14+
AllowShortFunctionsOnASingleLine: InlineOnly
15+
AllowShortIfStatementsOnASingleLine: false
16+
AllowShortLoopsOnASingleLine: false
17+
AlwaysBreakAfterDefinitionReturnType: None
18+
AlwaysBreakAfterReturnType: None
19+
AlwaysBreakBeforeMultilineStrings: true
20+
AlwaysBreakTemplateDeclarations: true
21+
PenaltyReturnTypeOnItsOwnLine: 999999
22+
BinPackArguments: false
23+
BinPackParameters: false
24+
BraceWrapping:
25+
AfterCaseLabel: true
26+
AfterClass: true
27+
AfterControlStatement: true
28+
AfterEnum: true
29+
AfterFunction: true
30+
AfterNamespace: true
31+
AfterObjCDeclaration: true
32+
AfterStruct: true
33+
AfterUnion: true
34+
BeforeCatch: true
35+
BeforeElse: true
36+
IndentBraces: false
37+
SplitEmptyFunction: true
38+
BreakBeforeBinaryOperators: NonAssignment
39+
BreakBeforeBraces: Custom
40+
BreakBeforeInheritanceComma: false
41+
BreakBeforeTernaryOperators: false
42+
BreakConstructorInitializers: AfterColon
43+
BreakConstructorInitializersBeforeComma: false
44+
BreakStringLiterals: true
45+
ColumnLimit: 125
46+
CompactNamespaces: false
47+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
48+
ContinuationIndentWidth: 4
49+
Cpp11BracedListStyle: true
50+
DerivePointerAlignment: false
51+
DisableFormat: false
52+
ForEachMacros: []
53+
IncludeCategories:
54+
- Regex: 'always.h'
55+
Priority: -1
56+
- Regex: '^<'
57+
Priority: 2
58+
- Regex: '^"'
59+
Priority: 1
60+
FixNamespaceComments: true
61+
IndentCaseLabels: true
62+
IndentWidth: 4
63+
IndentWrappedFunctionNames: true
64+
KeepEmptyLinesAtTheStartOfBlocks: false
65+
MacroBlockBegin: ''
66+
MacroBlockEnd: ''
67+
MaxEmptyLinesToKeep: 1
68+
NamespaceIndentation: None
69+
PointerAlignment: Right
70+
ReflowComments: true
71+
SortIncludes: false
72+
SortUsingDeclarations: true
73+
SpaceAfterCStyleCast: false
74+
SpaceAfterTemplateKeyword: false
75+
SpaceBeforeAssignmentOperators: true
76+
SpaceBeforeParens: ControlStatements
77+
SpaceInEmptyParentheses: false
78+
SpacesBeforeTrailingComments: 1
79+
SpacesInAngles: false
80+
SpacesInCStyleCastParentheses: false
81+
SpacesInParentheses: false
82+
SpacesInSquareBrackets: false
83+
Standard: c++03
84+
TabWidth: 4
85+
UseTab: Never
86+
87+
...

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
!.gitignore
44
!.gitattributes
55
!.github
6+
!.clang-format
67

78
*.user
89
*.ncb
@@ -42,6 +43,5 @@ CPackSourceConfig.cmake
4243
thumbs.db
4344
/CMakeUserPresets.json
4445
/.cache
45-
.clang-format
4646
/.vscode
4747
/Dependencies/MaxSDK/maxsdk

0 commit comments

Comments
 (0)