Summary Files Commits Branches @commit @diff @stats
path: root / .clang-format
diff options
context:
space:
mode:
Commit6c28568f2fe50e0cea5206dbba6dc307c3adb7da (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-03-12 09:00:39 +0100
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-03-12 09:00:39 +0100
Files7a2aca7b8788ca29d855a89f3aeede2b88506155 /.clang-format
goodwolf-6c28568f2fe50e0cea5206dbba6dc307c3adb7da.tar
goodwolf-6c28568f2fe50e0cea5206dbba6dc307c3adb7da.tar.gz
goodwolf-6c28568f2fe50e0cea5206dbba6dc307c3adb7da.zip
Parent272ed4245759fb4070984fb4d6fc7dafd2da7779 (diff)
Add `make format` and format the code
1 files changed, 20 insertions, 0 deletions
-rw-r--r--.clang-format20
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..0fc9f1a
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,20 @@
+AlignAfterOpenBracket: true
+AlignConsecutiveAssignments: true
+AlignOperands: true
+AlignTrailingComments: true
+AllowShortCaseLabelsOnASingleLine: true
+AllowShortFunctionsOnASingleLine: true
+AllowShortIfStatementsOnASingleLine: true
+BinPackArguments: false
+BinPackParameters: false
+BreakBeforeBraces: Allman
+SpaceBeforeParens: Never
+IncludeBlocks: Regroup
+ReflowComments: false
+SortIncludes: true
+UseTab: ForIndentation
+IndentWidth: 2
+TabWidth: 2
+ColumnLimit: 100
+
+NamespaceIndentation: All