From 0e631cd4f2fa6304f91e0214844d2064d8e394c1 Mon Sep 17 00:00:00 2001 From: ClarkeCode Date: Sun, 23 Apr 2023 14:43:14 -0400 Subject: Added a .clang-format for formatting use --- .clang-format | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .clang-format (limited to '.clang-format') diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..fff079a --- /dev/null +++ b/.clang-format @@ -0,0 +1,48 @@ +--- +UseCRLF: false +Standard: c++20 +UseTab: Always +TabWidth: 4 +SpacesInParentheses: false +SpacesInSquareBrackets: false +SpacesInLineCommentPrefix: + Minimum: 1 +SpacesInContainerLiterals: false +SpacesInConditionalStatement: false +SpacesInCStyleCastParentheses: false +SpacesInAngles: Never +SpaceInEmptyParentheses: false +SpaceInEmptyBlock: false +SpaceBeforeSquareBrackets: false +SpaceBeforeRangeBasedForLoopColon: true +SpaceBeforeParensOptions: + AfterControlStatements: true + AfterFunctionDeclarationName: false + BeforeNonEmptyParentheses: false +SpaceBeforeParens: ControlStatements +SpaceBeforeInheritanceColon: true +SpaceBeforeCtorInitializerColon: true +SpaceBeforeCpp11BracedList: true +SpaceBeforeCaseColon: false +SpaceBeforeAssignmentOperators: true +SpaceAroundPointerQualifiers: Before +SpaceAfterTemplateKeyword: false +SpaceAfterLogicalNot: false +RemoveBracesLLVM: false +ReferenceAlignment: Left +PointerAlignment: Left +NamespaceIndentation: All +LineEnding: LF +Language: Cpp +InsertNewlineAtEOF: true +IndentExternBlock: Indent +IndentCaseLabels: true +FixNamespaceComments: false +Cpp11BracedListStyle: false +CompactNamespaces: false +BreakBeforeBraces: Attach +AlwaysBreakTemplateDeclarations: Yes +AlignTrailingComments: + Kind: Always +AlignEscapedNewlines: Left +AlignArrayOfStructures: Right -- cgit v1.2.3-56-ga3b1 From 3d80b47304ac48018cc6ef2da557ee960e83011d Mon Sep 17 00:00:00 2001 From: ClarkeCode Date: Sun, 23 Apr 2023 19:31:57 -0400 Subject: Altering .clang-format to make compliant with clang-format 10.0.0; formerly 16.0.1 compliant --- .clang-format | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to '.clang-format') diff --git a/.clang-format b/.clang-format index fff079a..8f3b82a 100644 --- a/.clang-format +++ b/.clang-format @@ -5,44 +5,31 @@ UseTab: Always TabWidth: 4 SpacesInParentheses: false SpacesInSquareBrackets: false -SpacesInLineCommentPrefix: - Minimum: 1 SpacesInContainerLiterals: false SpacesInConditionalStatement: false SpacesInCStyleCastParentheses: false -SpacesInAngles: Never +SpacesInAngles: false SpaceInEmptyParentheses: false SpaceInEmptyBlock: false SpaceBeforeSquareBrackets: false SpaceBeforeRangeBasedForLoopColon: true -SpaceBeforeParensOptions: - AfterControlStatements: true - AfterFunctionDeclarationName: false - BeforeNonEmptyParentheses: false SpaceBeforeParens: ControlStatements SpaceBeforeInheritanceColon: true SpaceBeforeCtorInitializerColon: true SpaceBeforeCpp11BracedList: true -SpaceBeforeCaseColon: false SpaceBeforeAssignmentOperators: true -SpaceAroundPointerQualifiers: Before SpaceAfterTemplateKeyword: false SpaceAfterLogicalNot: false -RemoveBracesLLVM: false -ReferenceAlignment: Left PointerAlignment: Left NamespaceIndentation: All -LineEnding: LF +IndentWidth: 4 Language: Cpp -InsertNewlineAtEOF: true -IndentExternBlock: Indent IndentCaseLabels: true FixNamespaceComments: false Cpp11BracedListStyle: false +ColumnLimit: 0 CompactNamespaces: false BreakBeforeBraces: Attach AlwaysBreakTemplateDeclarations: Yes -AlignTrailingComments: - Kind: Always +AlignTrailingComments: true AlignEscapedNewlines: Left -AlignArrayOfStructures: Right -- cgit v1.2.3-56-ga3b1