aboutsummaryrefslogtreecommitdiffhomepage
path: root/.clang-format
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2020-10-30 18:19:02 +0100
committerPaul Adenot <[email protected]>2020-11-02 16:08:27 +0000
commitc81283271fa45fb7606e753719d9725d457189f2 (patch)
treebe2f51f4684823a85acec31c7e0750c6401eb4aa /.clang-format
parenta851a3ea8dbe109cc8dbd25946be57f1470caf75 (diff)
downloadcubeb-c81283271fa45fb7606e753719d9725d457189f2.tar.gz
cubeb-c81283271fa45fb7606e753719d9725d457189f2.zip
Add an initial clang-format file
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format13
1 files changed, 13 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..b8b0df0
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,13 @@
+IndentWidth: 2
+UseTab: Never
+ReflowComments: true
+PointerAlignment: Middle
+AlignAfterOpenBracket: Align
+AlwaysBreakAfterReturnType: TopLevel
+ColumnLimit: 80
+BreakBeforeBraces: Custom
+BraceWrapping:
+ AfterFunction: true
+ AfterControlStatement: Never
+SpaceBeforeParens: ControlStatements
+BreakBeforeBinaryOperators: None