summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2017-01-10 23:30:34 -0500
committerFurkan Sahin <furkan-dev@proton.me>2017-01-10 23:30:34 -0500
commit79c29501c2397a579a883611ec8abae3b49cc84b (patch)
tree193f92633136d35713279524d045bcbc95526ca8
parent0a7ff3a5363f093d5fd25288b9bac5e40040d5c1 (diff)
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.
-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 @@
BasedOnStyle: LLVM
-IndentWidth: 8
+IndentWidth: 4
+TabWidth: 4
UseTab: Always
BreakBeforeBraces: Attach
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
-ColumnLimit: 0
+SortIncludes: false
+ColumnLimit: 80
+AlignAfterOpenBracket: DontAlign
+BinPackParameters: false
+BinPackArguments: false
+ContinuationIndentWidth: 8
+AllowAllParametersOfDeclarationOnNextLine: false
+AllowShortLoopsOnASingleLine: true
+ReflowComments: false