aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2014-06-15 19:05:01 +0200
committerMichael Stapelberg <michael@stapelberg.de>2014-06-15 19:05:01 +0200
commit4d937b7dbb4046ae28da51349f7885dac5416618 (patch)
tree9fb51ac7ecf91873b3f4f056cbdc4955acde7367 /.clang-format
parentdf3f588cb57ee98c3004c4e4ffaf9afa05052a79 (diff)
downloadi3-4d937b7dbb4046ae28da51349f7885dac5416618.tar.gz
i3-4d937b7dbb4046ae28da51349f7885dac5416618.zip
add .clang-format, to be used with clang-format-3.5
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format11
1 files changed, 11 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 00000000..57948c31
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,11 @@
+BasedOnStyle: google
+AllowShortIfStatementsOnASingleLine: false
+AllowShortLoopsOnASingleLine: false
+AllowShortFunctionsOnASingleLine: None
+AllowShortBlocksOnASingleLine: false
+AlwaysBreakBeforeMultilineStrings: false
+IndentWidth: 4
+PointerBindsToType: false
+ColumnLimit: 0
+ForEachMacros: [ TAILQ_FOREACH, TAILQ_FOREACH_REVERSE, SLIST_FOREACH, CIRCLEQ_FOREACH, CIRCLEQ_FOREACH_REVERSE, NODES_FOREACH, NODES_FOREACH_REVERSE ]
+SpaceBeforeParens: ControlStatements