diff options
author | Finlay Davidson <finlay.davidson@coderclass.nl> | 2023-01-03 14:05:30 +0000 |
---|---|---|
committer | JF <JF002@users.noreply.github.com> | 2023-01-04 17:15:33 +0100 |
commit | eda96ffadc824742bf937c58f5295c86389a6d5e (patch) | |
tree | 1780b2fff3719f721c534cee192d28da945c9ff9 /.clang-format | |
parent | 318a243df1ad844ed487b936eb7edde876fc5ef6 (diff) |
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.
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 7 |
1 files changed, 6 insertions, 1 deletions
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 |