diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-01-10 23:30:34 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-01-10 23:30:34 -0500 |
commit | 84358788aae8472166bc01013515e09f9bc2f40c (patch) | |
tree | 193f92633136d35713279524d045bcbc95526ca8 | |
parent | Fix format error (diff) | |
download | sway-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.
-rw-r--r-- | .clang-format | 13 |
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 @@ | |||
1 | BasedOnStyle: LLVM | 1 | BasedOnStyle: LLVM |
2 | IndentWidth: 8 | 2 | IndentWidth: 4 |
3 | TabWidth: 4 | ||
3 | UseTab: Always | 4 | UseTab: Always |
4 | BreakBeforeBraces: Attach | 5 | BreakBeforeBraces: Attach |
5 | AllowShortIfStatementsOnASingleLine: false | 6 | AllowShortIfStatementsOnASingleLine: false |
6 | IndentCaseLabels: false | 7 | 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 | ||