Skip to content

Commit

Permalink
add .clang-format
Browse files Browse the repository at this point in the history
So that it is possible to automatically format code.

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
  • Loading branch information
ignatenkobrain committed Oct 8, 2018
1 parent 321bb2a commit 710dfb4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
BasedOnStyle: WebKit
---
Language: Cpp

AlwaysBreakAfterReturnType: AllDefinitions
# GNU, except for enum/struct/union/extern braces
BreakBeforeBraces: Custom
BraceWrapping:
AfterControlStatement: true
AfterEnum: false
AfterFunction: true
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeElse: true
IndentBraces: true
ForEachMacros:
- FOR_REPO_SOLVABLES
- FOR_REPODATAS
- FOR_PROVIDES
- FOR_REPOS
- FOR_POOL_SOLVABLES
- FOR_RULELITERALS
- FOR_JOB_SELECT
# This is a bit of obuse to get indentation
- IF_POOLDEBUG
IndentWidth: 2
PointerAlignment: Right
SortIncludes: false
TabWidth: 8
UseTab: Always
...

0 comments on commit 710dfb4

Please # to comment.