diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..8c469441 --- /dev/null +++ b/.clang-format @@ -0,0 +1,38 @@ +# Edyn project code style configuration +# This configuration preserves the existing code aesthetic +BasedOnStyle: LLVM +IndentWidth: 4 +AccessModifierOffset: -4 +ColumnLimit: 0 +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false +AlignOperands: false +AlignTrailingComments: false +AllowShortFunctionsOnASingleLine: All +AllowShortIfStatementsOnASingleLine: true +AllowShortLoopsOnASingleLine: true +BreakBeforeBraces: Attach +DerivePointerAlignment: false +PointerAlignment: Right +IncludeBlocks: Preserve +IndentCaseLabels: false +KeepEmptyLinesAtTheStartOfBlocks: true +MaxEmptyLinesToKeep: 2 +NamespaceIndentation: None +FixNamespaceComments: false +SortIncludes: false +SpaceAfterCStyleCast: false +SpaceAfterLogicalNot: false +SpaceAfterTemplateKeyword: false +SpaceBeforeAssignmentOperators: true +SpaceBeforeCpp11BracedList: false +SpaceBeforeParens: ControlStatements +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: false +SpacesInCStyleCastParentheses: false +SpacesInContainerLiterals: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +Standard: Latest +UseTab: Never