From f597be870eec6d04de6bed0effa7dd23bcb72bf8 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 11 Jul 2024 13:17:03 +0200 Subject: initial commit --- .clang-format | 138 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 .clang-format (limited to '.clang-format') diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..8d02964 --- /dev/null +++ b/.clang-format @@ -0,0 +1,138 @@ +--- +Language: Cpp + +AccessModifierOffset: -2 + +AlignAfterOpenBracket: Align +AlignArrayOfStructures: Left +AlignConsecutiveAssignments: false +AlignConsecutiveBitFields: true +AlignConsecutiveDeclarations: false +AlignEscapedNewlines: Right +AlignOperands: true +AlignTrailingComments: + Kind: Always + +AllowAllParametersOfDeclarationOnNextLine: false +AllowAllArgumentsOnNextLine: false +AllowShortBlocksOnASingleLine: false +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: None +AllowShortIfStatementsOnASingleLine: false +AllowShortLambdasOnASingleLine: Inline +AllowShortLoopsOnASingleLine: false + +AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakAfterReturnType: None +AlwaysBreakTemplateDeclarations: Yes + +BinPackArguments: false +BinPackParameters: false + +BraceWrapping: + AfterCaseLabel: true + AfterClass: true + AfterControlStatement: Always + AfterEnum: true + AfterFunction: true + AfterNamespace: true + AfterStruct: true + AfterUnion: true + AfterExternBlock: true + BeforeCatch: true + BeforeElse: true + BeforeWhile: false + IndentBraces: false + +BreakBeforeBraces: Custom +BreakBeforeConceptDeclarations: Always +BreakInheritanceList: AfterComma +BreakBeforeInlineASMColon: Always +BreakConstructorInitializers: BeforeComma +BreakStringLiterals: true + +ColumnLimit: 144 + +CompactNamespaces: false + +Cpp11BracedListStyle: true + +DerivePointerAlignment: false + +EmptyLineBeforeAccessModifier: Always + +FixNamespaceComments: true + +IncludeBlocks: Regroup +IncludeCategories: + # Local Headers + - Regex: '"[A-za-z0-9._\/]+"' + Priority: 200 + # Catch2 Headers + - Regex: '' + Priority: 300 + # STL Headers + - Regex: '<[A-za-z0-9_]+>' + Priority: 400 + # General System Headers + - Regex: '<[A-za-z0-9._\/]+>' + Priority: 500 + + +IndentCaseLabels: false +IndentPPDirectives: None +IndentWidth: 2 +IndentRequiresClause: false + +InsertTrailingCommas: Wrapped + +IntegerLiteralSeparator: + Binary: 4 + Decimal: 3 + DecimalMinDigits: 5 + Hex: 2 + HexMinDigits: 6 + +KeepEmptyLinesAtTheStartOfBlocks: true + +LambdaBodyIndentation: OuterScope + +MaxEmptyLinesToKeep: 1 + +NamespaceIndentation: All + +PointerAlignment: Middle + +ReferenceAlignment: Middle + +ReflowComments: true + +RemoveSemicolon: true + +RequiresClausePosition: OwnLine +RequiresExpressionIndentation: OuterScope + +ShortNamespaceLines: 0 + +SortIncludes: true +SortUsingDeclarations: true + +SpaceAfterCStyleCast: false +SpaceAfterTemplateKeyword: false +SpaceBeforeAssignmentOperators: true +SpaceBeforeParens: ControlStatements +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 2 +SpacesInAngles: false +SpacesInContainerLiterals: false +SpacesInCStyleCastParentheses: false +SpacesInParentheses: false +SpacesInSquareBrackets: false + +Standard: Latest + +TabWidth: 2 + +UseTab: Never + +... -- cgit v1.2.3