summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2020-12-08 18:38:22 +0100
committerFilip Gawin <filip.gawin@zoho.com>2020-12-08 18:38:22 +0100
commit6ba442577fc2fcc3b710812d2a92f124eb7c6e63 (patch)
treea55a162841b55847a42e92debd6e4a84ed33de3e /.clang-format
parent99e54aed800658d5b2072109e0b1273bc66d45b0 (diff)
Add basic clang format file
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format28
1 files changed, 28 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 00000000..7185ba37
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,28 @@
+---
+AllowShortBlocksOnASingleLine: 'true'
+AllowShortCaseLabelsOnASingleLine: 'true'
+AllowShortIfStatementsOnASingleLine: 'true'
+AllowShortLoopsOnASingleLine: 'true'
+AlwaysBreakAfterReturnType: TopLevel
+AccessModifierOffset: -8
+BreakBeforeBraces: Linux
+ColumnLimit: 160
+IndentCaseLabels: 'false'
+IndentWidth: '8'
+Language: Cpp
+PointerAlignment: Right
+SpaceAfterCStyleCast: 'false'
+SpaceBeforeAssignmentOperators: 'true'
+SpaceBeforeCtorInitializerColon: 'true'
+SpaceBeforeInheritanceColon: 'true'
+SpaceBeforeParens: Never
+SpaceInEmptyParentheses: 'false'
+SpacesInAngles: 'false'
+SpacesInCStyleCastParentheses: 'false'
+SpacesInContainerLiterals: 'false'
+SpacesInParentheses: 'false'
+SpacesInSquareBrackets: 'false'
+TabWidth: '8'
+UseTab: ForIndentation
+
+...