diff --git a/.clang-format b/.clang-format index 6e1c5b2..e56b1a1 100755 --- a/.clang-format +++ b/.clang-format @@ -1,7 +1,7 @@ --- BasedOnStyle: WebKit -AccessModifierOffset: '-4' +AccessModifierOffset: -4 AlignAfterOpenBracket: Align # Don't vertically align too much to not fuck with VC @@ -13,26 +13,26 @@ AlignConsecutiveMacros: None AlignEscapedNewlines: DontAlign AlignOperands: AlignAfterOperator -AlignTrailingComments: 'true' -AllowAllArgumentsOnNextLine: 'false' -# DEPRECATED: AllowAllConstructorInitializersOnNextLine: 'true' -AllowAllParametersOfDeclarationOnNextLine: 'false' +AlignTrailingComments: true +AllowAllArgumentsOnNextLine: false +# DEPRECATED: AllowAllConstructorInitializersOnNextLine: false +AllowAllParametersOfDeclarationOnNextLine: false # Allow single line stuff AllowShortBlocksOnASingleLine: Always -AllowShortCaseLabelsOnASingleLine: 'true' -AllowShortEnumsOnASingleLine: 'true' +AllowShortCaseLabelsOnASingleLine: true +AllowShortEnumsOnASingleLine: true AllowShortFunctionsOnASingleLine: All AllowShortIfStatementsOnASingleLine: AllIfsAndElse AllowShortLambdasOnASingleLine: All -AllowShortLoopsOnASingleLine: 'true' +AllowShortLoopsOnASingleLine: true AlwaysBreakAfterReturnType: None -AlwaysBreakBeforeMultilineStrings: 'false' +AlwaysBreakBeforeMultilineStrings: false AlwaysBreakTemplateDeclarations: 'No' # Don't force single line for each -BinPackArguments: 'true' -BinPackParameters: 'true' +BinPackArguments: true +BinPackParameters: true BitFieldColonSpacing: Both BreakBeforeBinaryOperators: None @@ -40,101 +40,101 @@ BreakBeforeBinaryOperators: None # Braces completely attached, should be the same as BreakBeforeBraces: Attach BreakBeforeBraces: Custom BraceWrapping: - AfterCaseLabel: 'false' - AfterClass: 'false' + AfterCaseLabel: false + AfterClass: false AfterControlStatement: Never - AfterEnum: 'false' - AfterFunction: 'false' - AfterNamespace: 'false' - AfterStruct: 'false' - AfterUnion: 'false' - AfterExternBlock: 'false' - BeforeCatch: 'false' - BeforeElse: 'false' - BeforeLambdaBody: 'false' - BeforeWhile: 'false' - IndentBraces: 'false' - SplitEmptyFunction: 'false' - SplitEmptyRecord: 'false' - SplitEmptyNamespace: 'false' + AfterEnum: false + AfterFunction: false + AfterNamespace: false + AfterStruct: false + AfterUnion: false + AfterExternBlock: false + BeforeCatch: false + BeforeElse: false + BeforeLambdaBody: false + BeforeWhile: false + IndentBraces: false + SplitEmptyFunction: false + SplitEmptyRecord: false + SplitEmptyNamespace: false -BreakBeforeConceptDeclarations: 'false' -BreakBeforeTernaryOperators: 'true' +BreakBeforeConceptDeclarations: false +BreakBeforeTernaryOperators: false BreakConstructorInitializers: BeforeColon BreakInheritanceList: BeforeColon -BreakStringLiterals: 'false' -ColumnLimit: '0' -CompactNamespaces: 'false' -# DEPRECATED: ConstructorInitializerAllOnOneLineOrOnePerLine: 'false' -ConstructorInitializerIndentWidth: '2' -ContinuationIndentWidth: '2' -Cpp11BracedListStyle: 'true' +BreakStringLiterals: false +ColumnLimit: 0 +CompactNamespaces: false +# DEPRECATED: ConstructorInitializerAllOnOneLineOrOnePerLine: false +ConstructorInitializerIndentWidth: 2 +ContinuationIndentWidth: 2 +Cpp11BracedListStyle: false # Force my style onto everything :) -DeriveLineEnding: 'false' -DerivePointerAlignment: 'false' +DeriveLineEnding: false +DerivePointerAlignment: false -DisableFormat: 'false' +DisableFormat: false EmptyLineAfterAccessModifier: Never EmptyLineBeforeAccessModifier: Always -ExperimentalAutoDetectBinPacking: 'false' -FixNamespaceComments: 'true' +ExperimentalAutoDetectBinPacking: false +FixNamespaceComments: false IncludeBlocks: Preserve -IndentAccessModifiers: 'false' # don't indent, use AccessModifierOffset instead -IndentCaseBlocks: 'false' -IndentCaseLabels: 'false' +IndentAccessModifiers: false # don't indent, use AccessModifierOffset instead +IndentCaseBlocks: false +IndentCaseLabels: false IndentExternBlock: Indent -IndentGotoLabels: 'false' +IndentGotoLabels: false IndentPPDirectives: None -IndentRequires: 'false' -IndentWidth: '4' -IndentWrappedFunctionNames: 'false' -# TODO: InsertBraces: 'true' -KeepEmptyLinesAtTheStartOfBlocks: 'true' +IndentRequires: false +IndentWidth: 4 +IndentWrappedFunctionNames: false +# TODO: InsertBraces: false +KeepEmptyLinesAtTheStartOfBlocks: false LambdaBodyIndentation: Signature Language: Cpp -MaxEmptyLinesToKeep: '1' +MaxEmptyLinesToKeep: 1 NamespaceIndentation: All PointerAlignment: Left PPIndentWidth: -1 # use IndentWidth # TODO: PackConstructorInitializers: NextLine # TODO: QualifierAlignment: Leave ReferenceAlignment: Left -ReflowComments: 'false' -# TODO: RemoveBracesLLVM: 'false' +ReflowComments: false +# TODO: RemoveBracesLLVM: false # TODO: RequiresClausePosition: WithPreceding # TODO: SeparateDefinitionBlocks: Always ShortNamespaceLines: 0 SortIncludes: CaseInsensitive -SortUsingDeclarations: 'true' -SpaceAfterCStyleCast: 'false' -SpaceAfterLogicalNot: 'false' -SpaceAfterTemplateKeyword: 'false' +SortUsingDeclarations: false +SpaceAfterCStyleCast: false +SpaceAfterLogicalNot: false +SpaceAfterTemplateKeyword: false SpaceAroundPointerQualifiers: Default -SpaceBeforeAssignmentOperators: 'true' -SpaceBeforeCaseColon: 'false' -SpaceBeforeCpp11BracedList: 'true' -SpaceBeforeCtorInitializerColon: 'true' -SpaceBeforeInheritanceColon: 'true' +SpaceBeforeAssignmentOperators: false +SpaceBeforeCaseColon: false +SpaceBeforeCpp11BracedList: false +SpaceBeforeCtorInitializerColon: false +SpaceBeforeInheritanceColon: false SpaceBeforeParens: ControlStatements -SpaceBeforeRangeBasedForLoopColon: 'true' -SpaceInEmptyBlock: 'false' -SpaceInEmptyParentheses: 'false' -SpacesBeforeTrailingComments: '2' +SpaceBeforeRangeBasedForLoopColon: false +SpaceInEmptyBlock: false +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 2 SpacesInAngles: Never -SpacesInCStyleCastParentheses: 'false' -SpacesInConditionalStatement: 'false' -SpacesInContainerLiterals: 'false' +SpacesInCStyleCastParentheses: false +SpacesInConditionalStatement: false +SpacesInContainerLiterals: false SpacesInLineCommentPrefix: - Minimum: '1' - Maximum: '1' + Minimum: 1 + Maximum: 1 -SpacesInParentheses: 'false' -SpacesInSquareBrackets: 'false' +SpacesInParentheses: false +SpacesInSquareBrackets: false Standard: c++20 -TabWidth: '4' -UseCRLF: 'false' +TabWidth: 4 +UseCRLF: false UseTab: Never ...