From eda96ffadc824742bf937c58f5295c86389a6d5e Mon Sep 17 00:00:00 2001 From: Finlay Davidson Date: Tue, 3 Jan 2023 14:05:30 +0000 Subject: Update clang-{format,tidy} to 14 Also add configuration options only available in 13 and 14. Fixes warning about -fstack-usage in clang-tidy check. --- .clang-format | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.clang-format') diff --git a/.clang-format b/.clang-format index dec58189..3e397c6d 100644 --- a/.clang-format +++ b/.clang-format @@ -59,6 +59,7 @@ Cpp11BracedListStyle: true DeriveLineEnding: false DerivePointerAlignment: false DisableFormat: false +EmptyLineAfterAccessModifier: Never ExperimentalAutoDetectBinPacking: true FixNamespaceComments: false ForEachMacros: @@ -78,6 +79,7 @@ IncludeCategories: SortPriority: 0 IncludeIsMainRegex: '(Test)?$' IncludeIsMainSourceRegex: '' +IndentAccessModifiers: false IndentCaseLabels: true IndentGotoLabels: true IndentPPDirectives: BeforeHash @@ -92,6 +94,7 @@ MacroBlockBegin: '' MacroBlockEnd: '' MaxEmptyLinesToKeep: 1 NamespaceIndentation: All +PackConstructorInitializers: NextLine PenaltyBreakAssignment: 2 PenaltyBreakBeforeFirstCallParameter: 19 PenaltyBreakComment: 300 @@ -101,7 +104,9 @@ PenaltyBreakTemplateDeclaration: 10 PenaltyExcessCharacter: 1000000 PenaltyReturnTypeOnItsOwnLine: 60 PointerAlignment: Left +ReferenceAlignment: Pointer ReflowComments: true +SeparateDefinitionBlocks: Always SortIncludes: false SortUsingDeclarations: true SpaceAfterCStyleCast: true @@ -123,7 +128,7 @@ SpacesInCStyleCastParentheses: false SpacesInParentheses: false SpacesInSquareBrackets: false SpaceBeforeSquareBrackets: false -# Needs new Clang: SpaceAroundPointerQualifiers: After +SpaceAroundPointerQualifiers: Default Standard: Latest StatementMacros: - Q_UNUSED -- cgit v1.2.3-70-g09d2