Skip to content

Commit

Permalink
initial version of a clang format file that matches quite good with t…
Browse files Browse the repository at this point in the history
…he existing coding style (#436)

Co-authored-by: Daniel B <[email protected]>
  • Loading branch information
daniel-brosche and daniel-brosche authored Oct 1, 2021
1 parent a6d8a6d commit bb28930
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
Language: Cpp

SortIncludes: false

BasedOnStyle: Chromium

BreakBeforeBraces: Stroustrup

AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false

ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
ConstructorInitializerIndentWidth: '2'

ColumnLimit: '150'
ContinuationIndentWidth: '2'
TabWidth: '2'
IndentWidth: '2'
AccessModifierOffset : '-2'
IndentCaseLabels: false
Cpp11BracedListStyle: 'true'
...

0 comments on commit bb28930

Please sign in to comment.