aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+---