summaryrefslogtreecommitdiff
path: root/tools/clang-format
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-03-08 08:38:45 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-03-08 08:38:45 -0500
commit5c0f11970cd6de85948d8327bdc88267882a01ce (patch)
tree79a9744edd5fddaa13ab46e39d01391b37e41db9 /tools/clang-format
parent48c70b60d84e1296c0741f66b24e0604c9571d68 (diff)
add an untested, but likely usable clang-format configuration file (from matthias buhr)
Diffstat (limited to 'tools/clang-format')
-rw-r--r--tools/clang-format25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/clang-format b/tools/clang-format
new file mode 100644
index 0000000000..e014125497
--- /dev/null
+++ b/tools/clang-format
@@ -0,0 +1,25 @@
+---
+
+Language: Cpp
+AlignAfterOpenBracket: 'true'
+AlignTrailingComments: 'true'
+AlwaysBreakTemplateDeclarations: 'true'
+AllowShortBlocksOnASingleLine: 'false'
+AllowShortCaseLabelsOnASingleLine: 'false'
+AllowShortFunctionsOnASingleLine: All
+AllowShortIfStatementsOnASingleLine: 'false'
+AllowShortLoopsOnASingleLine: 'false'
+AlwaysBreakAfterDefinitionReturnType: 'true'
+BasedOnStyle: LLVM
+BreakBeforeBraces: 'Linux'
+BreakConstructorInitializersBeforeComma: 'true'
+ColumnLimit: '100'
+ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
+IndentCaseLabels: 'false'
+NamespaceIndentation: 'None'
+PenaltyReturnTypeOnItsOwnLine: '1'
+PointerAlignment: Left
+SpaceBeforeParens: Always
+TabWidth: '2'
+UseTab: ForIndentation
+