aboutsummaryrefslogtreecommitdiff
path: root/common/home/mosder/.clang-format
diff options
context:
space:
mode:
Diffstat (limited to 'common/home/mosder/.clang-format')
-rw-r--r--common/home/mosder/.clang-format29
1 files changed, 29 insertions, 0 deletions
diff --git a/common/home/mosder/.clang-format b/common/home/mosder/.clang-format
new file mode 100644
index 0000000..22282fe
--- /dev/null
+++ b/common/home/mosder/.clang-format
@@ -0,0 +1,29 @@
+# Indentation
+IndentWidth: 4
+ContinuationIndentWidth: 4
+UseTab: Never
+
+# Pointer alignment
+PointerAlignment: Right
+
+# Braces alignment
+SpaceBeforeParens: ControlStatements
+AlignAfterOpenBracket: BlockIndent
+AllowShortFunctionsOnASingleLine: false
+BreakBeforeBraces: Custom
+BraceWrapping:
+ AfterCaseLabel: false
+ AfterControlStatement: Never
+ AfterEnum: false
+ AfterFunction: false
+ AfterNamespace: false
+ AfterStruct: false
+ AfterUnion: false
+ BeforeElse: true
+ BeforeWhile: false
+
+# Column limit
+ColumnLimit: 160
+
+# Max empty lines
+MaxEmptyLinesToKeep: 1