Skip to content

Commit 0086f6e

Browse files
committed
Add formatting rules
1 parent b0644bf commit 0086f6e

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

.clang-format

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
BasedOnStyle: LLVM
2+
AllowShortFunctionsOnASingleLine: None
3+
BreakBeforeBraces: Allman
4+
ColumnLimit: 100
5+
UseTab: Never
6+
IndentWidth: 4
7+
TabWidth: 4
8+
AlignAfterOpenBracket: DontAlign
9+
Cpp11BracedListStyle: false
10+
BreakStringLiterals: false
11+
IndentCaseLabels: false
12+
BinPackArguments: false
13+
BinPackParameters: false
14+
AlignTrailingComments: false
15+
IncludeCategories:
16+
- Regex: '^"gba/types\.h"$'
17+
Priority: -4
18+
- Regex: '^"global\.h"$'
19+
Priority: -3
20+
- Regex: '^"gba/gba\.h"$'
21+
Priority: -2
22+
- Regex: '^"gba/'
23+
Priority: -1
24+
- Regex: '.\*'
25+
Priority: 1

include/.clang-format

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
BasedOnStyle: LLVM
2+
AllowShortFunctionsOnASingleLine: None
3+
BreakBeforeBraces: Allman
4+
ColumnLimit: 100
5+
UseTab: Never
6+
IndentWidth: 4
7+
TabWidth: 4
8+
AlignAfterOpenBracket: DontAlign
9+
Cpp11BracedListStyle: false
10+
BreakStringLiterals: false
11+
IndentCaseLabels: false
12+
BinPackArguments: false
13+
BinPackParameters: false
14+
IncludeCategories:
15+
- Regex: '^"gba/types\.h"$'
16+
Priority: -4
17+
- Regex: '^"global\.h"$'
18+
Priority: -3
19+
- Regex: '^"gba/gba\.h"$'
20+
Priority: -2
21+
- Regex: '^"gba/'
22+
Priority: -1
23+
- Regex: '.\*'
24+
Priority: 1

src/data/.clang-format

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
BasedOnStyle: LLVM
2+
AllowShortFunctionsOnASingleLine: None
3+
BreakBeforeBraces: Allman
4+
ColumnLimit: 0
5+
UseTab: Never
6+
IndentWidth: 4
7+
TabWidth: 4
8+
AlignAfterOpenBracket: DontAlign
9+
Cpp11BracedListStyle: false
10+
BreakStringLiterals: false
11+
IndentCaseLabels: false
12+
IncludeCategories:
13+
- Regex: '^"gba/types\.h"$'
14+
Priority: -4
15+
- Regex: '^"global\.h"$'
16+
Priority: -3
17+
- Regex: '^"gba/gba\.h"$'
18+
Priority: -2
19+
- Regex: '^"gba/'
20+
Priority: -1
21+
- Regex: '.\*'
22+
Priority: 1

0 commit comments

Comments
 (0)