From 6fb985b767b3629ad7cb276272a4da1786298c99 Mon Sep 17 00:00:00 2001 From: David Eklov Date: Mon, 11 Jul 2016 22:33:58 -0500 Subject: [PATCH] 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. --- .clang-format | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .clang-format 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