Skip to content

Commit 5a82e64

Browse files
committed
Add .clang-format file
1 parent 85f7a69 commit 5a82e64

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.clang-format

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
BasedOnStyle: LLVM
3+
4+
IndentWidth: 4
5+
TabWidth: 8
6+
UseTab: AlignWithSpaces
7+
BreakBeforeBraces: Linux
8+
ColumnLimit: 80
9+
IndentCaseLabels: false
10+
11+
# Disable single line
12+
AllowShortFunctionsOnASingleLine: None
13+
AllowShortIfStatementsOnASingleLine: Never
14+
AllowShortBlocksOnASingleLine : false
15+
AllowShortCaseLabelsOnASingleLine: false
16+
AllowShortLoopsOnASingleLine: false
17+
AllowShortEnumsOnASingleLine: false
18+
19+
# Function params
20+
AllowAllParametersOfDeclarationOnNextLine: false
21+
BinPackParameters: false
22+
23+

0 commit comments

Comments
 (0)