start creating c/c++ format

This commit is contained in:
Dennis Eichhorn 2022-08-16 19:03:18 +02:00
parent 8c189ce01e
commit e37da1c51a

28
Config/.clang-format Normal file
View File

@ -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