Skip to content

Commit 759d70c

Browse files
committed
Import clang-format settings from the 86Box repo
1 parent 2f2809c commit 759d70c

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

.clang-format

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
BasedOnStyle: WebKit
2+
AlignAfterOpenBracket: Align
3+
AlignArrayOfStructures: Left
4+
AlignConsecutiveMacros: AcrossEmptyLines
5+
AlignConsecutiveAssignments: Consecutive
6+
AlignConsecutiveBitFields: AcrossEmptyLines
7+
AlignConsecutiveDeclarations: Consecutive
8+
AlignEscapedNewlines: Left
9+
AlignTrailingComments: true
10+
AlwaysBreakAfterReturnType: TopLevelDefinitions
11+
BreakBeforeTernaryOperators: true
12+
IndentCaseLabels: true
13+
IndentCaseBlocks: true
14+
IndentGotoLabels: false
15+
IndentPPDirectives: AfterHash
16+
IndentExternBlock: NoIndent
17+
PointerAlignment: Right
18+
SpaceAfterCStyleCast: true
19+
SortIncludes: false

.editorconfig

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[*]
2+
charset = utf-8
3+
end_of_line = lf
4+
indent_style = space
5+
indent_size = 4
6+
tab_width = 4
7+
8+
# Disabled for now since not all editors support setting a tab_width value different from indent_size
9+
# Relevant VSCode extension issue: https://github.com/editorconfig/editorconfig-vscode/issues/190
10+
# [*.rc]
11+
# indent_style = space
12+
# indent_size = 4
13+
# tab_width = 4
14+
15+
# [Makefile.*]
16+
# indent_style = space
17+
# indent_size = 4
18+
# tab_width = 4
19+
20+
[*.manifest]
21+
indent_style = space
22+
indent_size = 2
23+
24+
[*.yml]
25+
indent_style = space
26+
indent_size = 2
27+
28+
[**/CMakeLists.txt]
29+
indent_style = space
30+
indent_size = 4
31+
32+
[*.cmake]
33+
indent_style = space
34+
indent_size = 4
35+
36+
[*.json]
37+
indent_style = space
38+
indent_size = 4

0 commit comments

Comments
 (0)