diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..8c5ba6f --- /dev/null +++ b/.clang-format @@ -0,0 +1,28 @@ +Language: Cpp +BasedOnStyle: GNU +UseTab: Never +IndentWidth: 2 +ContinuationIndentWidth: 2 +ColumnLimit: 80 +AlignAfterOpenBracket: Align +AlignArrayOfStructures: Left +AlignConsecutiveAssignments: Consecutive +AlignConsecutiveBitFields: Consecutive +AlignConsecutiveMacros: + Enabled: True + AcrossEmptyLines: False + AcrossComments: True +AlignConsecutiveDeclarations: Consecutive +AlignEscapedNewlines: Left +AlignOperands: Align +AllowAllParametersOfDeclarationOnNextLine: True +AllowShortIfStatementsOnASingleLine: AllIfsAndElse +AllowShortLoopsOnASingleLine: True +AlwaysBreakAfterReturnType: AllDefinitions +IndentGotoLabels: False +SpaceAfterCStyleCast: False +SpaceAfterLogicalNot: False +SpaceBeforeAssignmentOperators: True +SpaceBeforeParens: ControlStatements +IncludeBlocks: Preserve +SortIncludes: Never