aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-07-31 00:23:03 +0200
committerKenny Levinsen <kl@kl.wtf>2020-07-31 00:23:03 +0200
commit3b32bd539bfa0daf169559e009f3e9aa6140f4ce (patch)
treecf8cbb5c051e412759b87dff9f8be81db19ffedc /.clang-format
parent61716a2c77dfde9addf6b41a6d72d26a8584150e (diff)
Add clang format specification
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format27
1 files changed, 27 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..c182735
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,27 @@
+---
+IndentWidth: 8
+TabWidth: 8
+ContinuationIndentWidth: 8
+UseTab: Always
+ColumnLimit: 100
+
+AlignConsecutiveMacros: true
+AlignEscapedNewlines: Left
+AlignTrailingComments: true
+
+AllowAllArgumentsOnNextLine: true
+AllowAllParametersOfDeclarationOnNextLine: true
+AllowShortFunctionsOnASingleLine: Empty
+
+BreakBeforeBinaryOperators: None
+BreakStringLiterals: false
+
+PenaltyExcessCharacter: 10
+PenaltyBreakBeforeFirstCallParameter: 999999
+PenaltyBreakAssignment: 10
+
+MaxEmptyLinesToKeep: 1
+PointerAlignment: Right
+ReflowComments: true
+SortIncludes: true
+---