From 892d0cba6459fbd841cedaa49fe0117948bf12c0 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Mon, 13 Mar 2023 22:45:45 -0400 Subject: [PATCH] Updated clang format. --- Test/.clang-format | 111 ++++++++++++++++++++++++++++++++++++--------- 1 file changed, 90 insertions(+), 21 deletions(-) diff --git a/Test/.clang-format b/Test/.clang-format index 7065800..83822bb 100644 --- a/Test/.clang-format +++ b/Test/.clang-format @@ -1,17 +1,26 @@ # Format Style Options - Created with Clang Power Tools --- AccessModifierOffset: -4 -AlignAfterOpenBracket: Align -AlignConsecutiveAssignments: AcrossComments -AlignConsecutiveBitFields: AcrossComments -AlignConsecutiveDeclarations: AcrossComments -AlignConsecutiveMacros: AcrossComments + +AlignAfterOpenBracket: BlockIndent +AlignArrayOfStructures: Right +AlignConsecutiveAssignments: + Enabled: true + AcrossEmptyLines: false + AcrossComments: true + AlignCompound: true + PadOperators: true +AlignConsecutiveBitFields: AcrossComments +AlignConsecutiveDeclarations: AcrossComments +AlignConsecutiveMacros: AcrossComments AlignEscapedNewlines: Right -AlignOperands: DontAlign -AlignTrailingComments: false -AllowAllArgumentsOnNextLine: true -AllowAllConstructorInitializersOnNextLine: true -AllowAllParametersOfDeclarationOnNextLine: true +AlignOperands: DontAlign + +AlignTrailingComments: true + +AllowAllArgumentsOnNextLine: false +AllowAllConstructorInitializersOnNextLine: false +AllowAllParametersOfDeclarationOnNextLine: false AllowShortBlocksOnASingleLine: Never AllowShortCaseLabelsOnASingleLine: false AllowShortLambdasOnASingleLine: None @@ -19,11 +28,16 @@ AllowShortEnumsOnASingleLine: false AllowShortFunctionsOnASingleLine: None AllowShortIfStatementsOnASingleLine: Never AllowShortLoopsOnASingleLine: false + +AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: true AlwaysBreakTemplateDeclarations: Yes -BinPackArguments: true -BinPackParameters: true + +BinPackArguments: false +BinPackParameters: false + BitFieldColonSpacing: Both + BraceWrapping: AfterCaseLabel: false AfterClass: false @@ -43,52 +57,107 @@ BraceWrapping: SplitEmptyNamespace: false BeforeLambdaBody: false BeforeWhile: false + +# BreakAfterAttributes: Always +# BreakArrays: false +# BreakBeforeInlineASMColon: OnlyMultiline BreakBeforeBinaryOperators: NonAssignment BreakBeforeBraces: Allman BreakBeforeInheritanceComma: true -BreakInheritanceList: BeforeColon +BreakInheritanceList: BeforeComma BreakBeforeConceptDeclarations: true BreakBeforeTernaryOperators: true -BreakConstructorInitializers: BeforeColon +BreakConstructorInitializers: BeforeComma +BreakStringLiterals: true + ColumnLimit: 180 + CompactNamespaces: true + ConstructorInitializerAllOnOneLineOrOnePerLine: true ConstructorInitializerIndentWidth : 4 + ContinuationIndentWidth: 4 + +Cpp11BracedListStyle: false + DeriveLineEnding: true + ExperimentalAutoDetectBinPacking: false + FixNamespaceComments: true + IncludeBlocks: Preserve + + IndentCaseBlocks: true IndentCaseLabels: true -IndentExternBlock: Indent -IndentGotoLabels: false -IndentPPDirectives: None -IndentRequires: false +IndentExternBlock: AfterExternBlock +IndentGotoLabels: true +IndentPPDirectives: AfterHash +IndentRequires: true IndentWidth: 4 IndentWrappedFunctionNames: false + +# InsertNewlineAtEOF: true +InsertTrailingCommas: Wrapped + +LambdaBodyIndentation: OuterScope + Language: Cpp + +MaxEmptyLinesToKeep: 4 + NamespaceIndentation: All + PointerAlignment: Left + +QualifierAlignment: Leave + +ReferenceAlignment: Left + +ReflowComments: true + +# RequiresExpressionIndentation: OuterScope + +SeparateDefinitionBlocks: Always + +ShortNamespaceLines: 40 + SortIncludes: true SortUsingDeclarations: true + SpaceAfterCStyleCast: false SpaceAfterLogicalNot: true -SpaceAfterTemplateKeyword: true -SpaceAroundPointerQualifiers: After +SpaceAfterTemplateKeyword: false + +SpaceAroundPointerQualifiers: Default + +SpaceBeforeAssignmentOperators: true SpaceBeforeCaseColon: true SpaceBeforeCpp11BracedList: true SpaceBeforeCtorInitializerColon: true SpaceBeforeInheritanceColon: true +SpaceBeforeParens: ControlStatementsExceptControlMacros SpaceBeforeRangeBasedForLoopColon: true +SpaceBeforeSquareBrackets: false +SpacesBeforeTrailingComments: 4 + SpaceInEmptyBlock: true SpaceInEmptyParentheses: false SpacesInAngles: true -SpacesInCStyleCastParentheses: false +SpacesInCStyleCastParentheses: true SpacesInConditionalStatement: true +SpacesInContainerLiterals: true +SpacesInLineCommentPrefix: + Minimum: 1 + Maximum: 20 SpacesInParentheses: true SpacesInSquareBrackets: true + Standard: c++17 + TabWidth: 4 + UseTab: ForIndentation ...