Skip to content

Commit d175c69

Browse files
committed
add .clang-format
So that it is possible to automatically format code. Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
1 parent f9a8953 commit d175c69

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.clang-format

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
BasedOnStyle: WebKit
3+
---
4+
Language: Cpp
5+
6+
AlwaysBreakAfterReturnType: AllDefinitions
7+
# GNU, except for enum/struct/union/extern braces
8+
BreakBeforeBraces: Custom
9+
BraceWrapping:
10+
AfterControlStatement: true
11+
AfterEnum: false
12+
AfterFunction: true
13+
AfterStruct: false
14+
AfterUnion: false
15+
AfterExternBlock: false
16+
BeforeElse: true
17+
IndentBraces: true
18+
ForEachMacros:
19+
- FOR_REPO_SOLVABLES
20+
- FOR_REPODATAS
21+
- FOR_PROVIDES
22+
- FOR_REPOS
23+
- FOR_POOL_SOLVABLES
24+
- FOR_RULELITERALS
25+
- FOR_JOB_SELECT
26+
# This is a bit of obuse to get indentation
27+
- IF_POOLDEBUG
28+
IndentWidth: 2
29+
PointerAlignment: Right
30+
SortIncludes: false
31+
TabWidth: 8
32+
UseTab: Always
33+
...

0 commit comments

Comments
 (0)