Skip to content

Commit 0b0535c

Browse files
committed
Add ethminer clang-format file
1 parent 2cbcb23 commit 0b0535c

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.clang-format

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
Language: Cpp
3+
BasedOnStyle: Chromium
4+
AccessModifierOffset: -4
5+
AlignAfterOpenBracket: DontAlign
6+
BinPackParameters: true
7+
BraceWrapping:
8+
AfterClass: true
9+
AfterControlStatement: true
10+
AfterEnum: true
11+
AfterFunction: true
12+
AfterNamespace: true
13+
AfterObjCDeclaration: true
14+
AfterStruct: true
15+
AfterUnion: true
16+
BeforeCatch: true
17+
BeforeElse: true
18+
SplitEmptyFunction: false
19+
BreakBeforeBraces: Custom
20+
BreakBeforeTernaryOperators: false
21+
ColumnLimit: 100
22+
ConstructorInitializerIndentWidth: 2
23+
IncludeCategories:
24+
- Regex: '^".*'
25+
Priority: 1
26+
- Regex: '^<boost.*'
27+
Priority: 98
28+
- Regex: '^<.*\.h>'
29+
Priority: 2
30+
- Regex: '^<.*'
31+
Priority: 99
32+
- Regex: '.*'
33+
Priority: 4
34+
IncludeIsMainRegex: '(Test)?$'
35+
IndentCaseLabels: false
36+
IndentWidth: 4
37+
MaxEmptyLinesToKeep: 2
38+
PenaltyBreakAssignment: 1
39+
PenaltyBreakComment: 50
40+
TabWidth: 4
41+
...

0 commit comments

Comments
 (0)