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 | Merge pull request #744 from thejan2009/tabbed-stacked-layout-fixes (diff) | |
download | sway-6fb985b767b3629ad7cb276272a4da1786298c99.tar.gz sway-6fb985b767b3629ad7cb276272a4da1786298c99.tar.zst sway-6fb985b767b3629ad7cb276272a4da1786298c99.zip |
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 @@ | |||
1 | BasedOnStyle: LLVM | ||
2 | IndentWidth: 8 | ||
3 | UseTab: Always | ||
4 | BreakBeforeBraces: Attach | ||
5 | AllowShortIfStatementsOnASingleLine: false | ||
6 | IndentCaseLabels: false | ||
7 | ColumnLimit: 0 | ||