Skip to content

Commit

Permalink
.clang_format added
Browse files Browse the repository at this point in the history
  • Loading branch information
microengineer committed Feb 8, 2021
1 parent f1a6186 commit 2528a51
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 @@
Language: Cpp
# BasedOnStyle

TabWidth: 8
UseTab: Never
IndentWidth: 4
ColumnLimit: 80
MaxEmptyLinesToKeep: 2

# Break after function definitions and else
BreakBeforeBraces: Stroustrup

AlignAfterOpenBracket: true
AlignEscapedNewlinesLeft: false
AlignOperands: true
AlwaysBreakAfterReturnType: None
BinPackArguments: true
BinPackParameters: true
DerivePointerAlignment: false
PointerAlignment: Right
SortIncludes: false
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false

# Never allow single line statements
AllowShortFunctionsOnASingleLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false

0 comments on commit 2528a51

Please sign in to comment.