From e37da1c51a2ea2b834e4b4931f573b7c74f0a0c8 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 16 Aug 2022 19:03:18 +0200 Subject: [PATCH] start creating c/c++ format --- Config/.clang-format | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Config/.clang-format diff --git a/Config/.clang-format b/Config/.clang-format new file mode 100644 index 0000000..82fcb3a --- /dev/null +++ b/Config/.clang-format @@ -0,0 +1,28 @@ +# Common settings + +AlignAfterOpenBracket: Align +AlignConsecutiveAssignments: 'true' +AlignEscapedNewlines: Left +AlignOperands: 'true' +BreakBeforeBraces: Linux +ColumnLimit: '120' +IndentWidth: '4' +KeepEmptyLinesAtTheStartOfBlocks: 'false' +NamespaceIndentation: All +PointerAlignment: Right +SortIncludes: 'true' +SortUsingDeclarations: 'true' +SpaceAfterCStyleCast: 'true' +SpaceAfterLogicalNot: 'false' +SpaceAfterTemplateKeyword: 'false' +SpaceBeforeAssignmentOperators: 'true' +SpaceBeforeParens: ControlStatements +SpaceBeforeRangeBasedForLoopColon: 'true' +SpaceInEmptyParentheses: 'false' +SpacesInAngles: 'false' +SpacesInCStyleCastParentheses: 'false' +SpacesInContainerLiterals: 'false' +SpacesInParentheses: 'false' +SpacesInSquareBrackets: 'false' +TabWidth: '4' +UseTab: Never