about summary refs log tree commit diff stats
path: root/.clang-format
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-07 09:42:00 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-07 09:42:00 +0200
commit66f9a6b7219391b2c8bee5967f5ef7e223fd5d23 (patch)
treedcc542c84e92d95dcb7de21b6b956464421995df /.clang-format
parent87ddb8081ea237573b6825685edbe1c780b1e628 (diff)
downloadprofani-tty-66f9a6b7219391b2c8bee5967f5ef7e223fd5d23.tar.gz
Add clang-format file
People should run `make format` before doing a commit.
Fix https://github.com/profanity-im/profanity/issues/1396
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format33
1 files changed, 33 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 00000000..c2f306e2
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,33 @@
+Language: Cpp
+BasedOnStyle: GNU
+SpaceAfterCStyleCast: false
+SpaceAfterLogicalNot: false
+SpaceBeforeAssignmentOperators: true
+SpaceBeforeSquareBrackets: false
+SpaceInEmptyBlock: false
+SpaceInEmptyParentheses: false
+SpacesInCStyleCastParentheses: false
+SpacesInConditionalStatement: false
+SpacesInContainerLiterals: false
+SpacesInParentheses: false
+SpacesInSquareBrackets: false
+SpaceBeforeParens: ControlStatements
+ColumnLimit: 0
+PointerAlignment: Left
+AlignAfterOpenBracket: Align
+AlignConsecutiveMacros: true
+AlignEscapedNewlines: Left
+AlignOperands: true
+AlignTrailingComments: true
+AllowAllArgumentsOnNextLine: true
+AllowShortBlocksOnASingleLine: true
+IndentWidth: 4
+BreakBeforeBraces: Custom
+BraceWrapping:
+  AfterCaseLabel: true
+  AfterControlStatement: Never
+  AfterFunction: true
+  BeforeElse: false
+  #BeforeWhile: false
+  AfterStruct: true
+#BreakStringLiterals: true