aboutsummaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-01-10 23:30:34 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2017-01-10 23:30:34 -0500
commit84358788aae8472166bc01013515e09f9bc2f40c (patch)
tree193f92633136d35713279524d045bcbc95526ca8 /.clang-format
parentFix format error (diff)
downloadsway-84358788aae8472166bc01013515e09f9bc2f40c.tar.gz
sway-84358788aae8472166bc01013515e09f9bc2f40c.tar.zst
sway-84358788aae8472166bc01013515e09f9bc2f40c.zip
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.
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format13
1 files changed, 11 insertions, 2 deletions
diff --git a/.clang-format b/.clang-format
index 83d50545..5818da3c 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,7 +1,16 @@
1BasedOnStyle: LLVM 1BasedOnStyle: LLVM
2IndentWidth: 8 2IndentWidth: 4
3TabWidth: 4
3UseTab: Always 4UseTab: Always
4BreakBeforeBraces: Attach 5BreakBeforeBraces: Attach
5AllowShortIfStatementsOnASingleLine: false 6AllowShortIfStatementsOnASingleLine: false
6IndentCaseLabels: false 7IndentCaseLabels: false
7ColumnLimit: 0 8SortIncludes: false
9ColumnLimit: 80
10AlignAfterOpenBracket: DontAlign
11BinPackParameters: false
12BinPackArguments: false
13ContinuationIndentWidth: 8
14AllowAllParametersOfDeclarationOnNextLine: false
15AllowShortLoopsOnASingleLine: true
16ReflowComments: false