summaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2019-02-20 13:35:18 +0100
committerUwe Klotz <uklotz@mixxx.org>2019-04-09 21:11:59 +0200
commit46d45483dc5531ebac50091ad0e2fa60ac4555be (patch)
treebb030bb411fe8e3c216498c02a4d25c74df34dce /.clang-format
parent3af4b1db1eec4adcea615249c6123190d37d1e69 (diff)
Add .clang-format file
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format23
1 files changed, 23 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000000..19d6da4c7a
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,23 @@
+---
+BasedOnStyle: Google
+IndentWidth: 4
+TabWidth: 8
+UseTab: Never
+ColumnLimit: 100
+---
+Language: Cpp
+AccessModifierOffset: -2
+AlignAfterOpenBracket: AlwaysBreak
+AllowShortFunctionsOnASingleLine: None
+AllowShortIfStatementsOnASingleLine: false
+AllowShortLoopsOnASingleLine: false
+ConstructorInitializerIndentWidth: 8
+ContinuationIndentWidth: 8
+SpacesBeforeTrailingComments: 1
+---
+Language: JavaScript
+---
+Language: Proto
+# Don't format .proto files.
+DisableFormat: true
+...