diff options
author | ClarkeCode <33846391+ClarkeCode@users.noreply.github.com> | 2023-04-23 20:59:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-23 20:59:35 +0200 |
commit | 3108e213c4fd8bf3f185b656c3c0e6dc17d1bde0 (patch) | |
tree | 457974b27902988b7ef348c522cf89b66bfd4eb0 | |
parent | 7f433fe019310ecfd1d1c46afd97cbfcb210c88f (diff) | |
parent | 0e631cd4f2fa6304f91e0214844d2064d8e394c1 (diff) |
Merge pull request #95 from OpenVic2Project/clang-format
Added a .clang-format file for formatting use
-rw-r--r-- | .clang-format | 48 |
1 files changed, 48 insertions, 0 deletions
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 |