aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar David Eklov <david.eklov@gmail.com>2016-07-11 22:33:58 -0500
committerLibravatar David Eklov <david.eklov@gmail.com>2016-07-11 22:33:58 -0500
commit6fb985b767b3629ad7cb276272a4da1786298c99 (patch)
tree1afc6285162141cce7caf7bcd82a43e8b98884ff
parentMerge pull request #744 from thejan2009/tabbed-stacked-layout-fixes (diff)
downloadsway-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-format7
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 @@
1BasedOnStyle: LLVM
2IndentWidth: 8
3UseTab: Always
4BreakBeforeBraces: Attach
5AllowShortIfStatementsOnASingleLine: false
6IndentCaseLabels: false
7ColumnLimit: 0