Skip to content

Commit 8435878

Browse files
committed
Update .clang-format - not entirely usable yet
I've run into a situation where clang-format does not support the necessary style rules. It will have to be patched before clang-format is fully adopted into Sway. Use this file with caution.
1 parent 7c636da commit 8435878

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.clang-format

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
BasedOnStyle: LLVM
2-
IndentWidth: 8
2+
IndentWidth: 4
3+
TabWidth: 4
34
UseTab: Always
45
BreakBeforeBraces: Attach
56
AllowShortIfStatementsOnASingleLine: false
67
IndentCaseLabels: false
7-
ColumnLimit: 0
8+
SortIncludes: false
9+
ColumnLimit: 80
10+
AlignAfterOpenBracket: DontAlign
11+
BinPackParameters: false
12+
BinPackArguments: false
13+
ContinuationIndentWidth: 8
14+
AllowAllParametersOfDeclarationOnNextLine: false
15+
AllowShortLoopsOnASingleLine: true
16+
ReflowComments: false

0 commit comments

Comments
 (0)