diff options
author | David Eklov <david.eklov@gmail.com> | 2016-07-11 22:33:58 -0500 |
---|---|---|
committer | David Eklov <david.eklov@gmail.com> | 2016-07-11 22:33:58 -0500 |
commit | 6fb985b767b3629ad7cb276272a4da1786298c99 (patch) | |
tree | 1afc6285162141cce7caf7bcd82a43e8b98884ff | |
parent | 0374154749653b5f29b86e255af7b2346bddebe0 (diff) |
clang-format configuration for Sway's style as detailed in CONTRIBUTING.md
CONTRIBUTING.md says use kernel style, "but all braces go on the same line". The
kernel uses a column limit of 80 characters. The de facto syle in Sway is to
allow for wider lines so this format file does not enforce an 80 column limit.
-rw-r--r-- | .clang-format | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..83d50545 --- /dev/null +++ b/.clang-format @@ -0,0 +1,7 @@ +BasedOnStyle: LLVM +IndentWidth: 8 +UseTab: Always +BreakBeforeBraces: Attach +AllowShortIfStatementsOnASingleLine: false +IndentCaseLabels: false +ColumnLimit: 0 |