Skip to content

Commit d3d0b07

Browse files
authored
Add clang format (official-stockfish#374)
Add clang-format for training_data_loader.cpp
1 parent f1df4b7 commit d3d0b07

File tree

3 files changed

+666
-605
lines changed

3 files changed

+666
-605
lines changed

.clang-format

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
AccessModifierOffset: -1
2+
AlignAfterOpenBracket: Align
3+
AlignConsecutiveAssignments: Consecutive
4+
AlignConsecutiveDeclarations: Consecutive
5+
AlignEscapedNewlines: DontAlign
6+
AlignOperands: AlignAfterOperator
7+
AlignTrailingComments: true
8+
AllowAllParametersOfDeclarationOnNextLine: true
9+
AllowShortCaseLabelsOnASingleLine: false
10+
AllowShortEnumsOnASingleLine: false
11+
AllowShortIfStatementsOnASingleLine: false
12+
BreakTemplateDeclarations: Yes
13+
BasedOnStyle: WebKit
14+
BitFieldColonSpacing: After
15+
BinPackParameters: false
16+
BreakBeforeBinaryOperators: NonAssignment
17+
BreakBeforeBraces: Custom
18+
BraceWrapping:
19+
AfterFunction: false
20+
AfterClass: false
21+
AfterControlStatement: true
22+
BeforeElse: true
23+
BreakBeforeTernaryOperators: true
24+
BreakConstructorInitializers: AfterColon
25+
BreakStringLiterals: false
26+
ColumnLimit: 100
27+
ContinuationIndentWidth: 2
28+
Cpp11BracedListStyle: true
29+
IndentGotoLabels: false
30+
IndentPPDirectives: BeforeHash
31+
IndentWidth: 4
32+
MaxEmptyLinesToKeep: 2
33+
NamespaceIndentation: None
34+
PackConstructorInitializers: Never
35+
ReflowComments: false
36+
SortIncludes: false
37+
SortUsingDeclarations: false
38+
SpaceAfterCStyleCast: true
39+
SpaceAfterTemplateKeyword: false
40+
SpaceBeforeCaseColon: true
41+
SpaceBeforeCpp11BracedList: false
42+
SpaceBeforeInheritanceColon: false
43+
SpaceInEmptyBlock: false
44+
SpacesBeforeTrailingComments: 2

.clang-format-ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lib/*

0 commit comments

Comments
 (0)