2022-10-21 05:38:46 +02:00
|
|
|
# SPDX-FileCopyrightText: 2022 tastytea <tastytea@tastytea.de>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
2022-10-30 04:28:45 +01:00
|
|
|
# Written for clang-format 14.
|
|
|
|
# https://releases.llvm.org/14.0.0/tools/clang/docs/ClangFormatStyleOptions.html
|
2022-03-18 14:34:27 +01:00
|
|
|
---
|
|
|
|
DisableFormat: false
|
|
|
|
Language: Cpp
|
|
|
|
|
|
|
|
AccessModifierOffset: -4
|
|
|
|
AlignAfterOpenBracket: Align
|
2022-04-19 22:47:54 +02:00
|
|
|
AlignArrayOfStructures: Left
|
2022-03-18 14:34:27 +01:00
|
|
|
AlignConsecutiveAssignments: None
|
|
|
|
AlignConsecutiveBitFields: None
|
|
|
|
AlignConsecutiveDeclarations: None
|
|
|
|
AlignConsecutiveMacros: None
|
|
|
|
AlignEscapedNewlines: DontAlign
|
|
|
|
AlignOperands: Align
|
|
|
|
AlignTrailingComments: true
|
|
|
|
AllowAllArgumentsOnNextLine: false
|
|
|
|
AllowAllConstructorInitializersOnNextLine: false
|
|
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
|
|
AllowShortBlocksOnASingleLine: Empty
|
|
|
|
AllowShortCaseLabelsOnASingleLine: true
|
|
|
|
AllowShortEnumsOnASingleLine: false
|
|
|
|
AllowShortFunctionsOnASingleLine: Empty
|
|
|
|
AllowShortIfStatementsOnASingleLine: Never
|
|
|
|
AllowShortLambdasOnASingleLine: Inline
|
|
|
|
AllowShortLoopsOnASingleLine: false
|
|
|
|
AlwaysBreakAfterReturnType: None
|
|
|
|
AlwaysBreakBeforeMultilineStrings: false
|
|
|
|
AlwaysBreakTemplateDeclarations: Yes
|
2022-04-19 22:47:54 +02:00
|
|
|
# AttributeMacros: ['__capability', '__output', '__ununsed']
|
2022-03-18 14:34:27 +01:00
|
|
|
BinPackArguments: true
|
|
|
|
BinPackParameters: true
|
|
|
|
BitFieldColonSpacing: Both
|
2022-04-19 22:47:54 +02:00
|
|
|
# BraceWrapping: # If BreakBeforeBraces is set to Custom.
|
2022-03-18 14:34:27 +01:00
|
|
|
BreakBeforeBinaryOperators: NonAssignment
|
2022-04-19 22:47:54 +02:00
|
|
|
BreakBeforeBraces: Attach
|
2022-03-18 14:34:27 +01:00
|
|
|
BreakBeforeConceptDeclarations: true
|
|
|
|
BreakBeforeTernaryOperators: true
|
|
|
|
BreakConstructorInitializers: BeforeComma
|
2022-10-30 04:28:45 +01:00
|
|
|
PackConstructorInitializers: Never # 14
|
2022-03-18 14:34:27 +01:00
|
|
|
BreakInheritanceList: BeforeComma
|
|
|
|
BreakStringLiterals: true
|
|
|
|
ColumnLimit: 80
|
2022-04-19 22:47:54 +02:00
|
|
|
# CommentPragmas:
|
2022-03-18 14:34:27 +01:00
|
|
|
CompactNamespaces: false
|
|
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
|
|
|
ConstructorInitializerIndentWidth: 4
|
|
|
|
ContinuationIndentWidth: 4
|
|
|
|
Cpp11BracedListStyle: true
|
|
|
|
DeriveLineEnding: true
|
|
|
|
DerivePointerAlignment: false
|
|
|
|
EmptyLineBeforeAccessModifier: LogicalBlock
|
|
|
|
FixNamespaceComments: true
|
2022-04-19 22:47:54 +02:00
|
|
|
# ForEachMacros: ['FOREACH', 'RANGES_FOR', 'Q_FOREACH', 'BOOST_FOREACH' ]
|
|
|
|
# IfMacros: ['IF']
|
2022-03-18 14:34:27 +01:00
|
|
|
IncludeBlocks: Regroup
|
|
|
|
IncludeCategories: # stdlib headers into own group.
|
2022-10-30 04:28:45 +01:00
|
|
|
- Regex: '^[^\.Q]+$'
|
2022-03-18 14:34:27 +01:00
|
|
|
Priority: 4
|
2022-04-19 22:47:54 +02:00
|
|
|
IndentAccessModifiers: false
|
2022-03-18 14:34:27 +01:00
|
|
|
IndentCaseBlocks: false
|
2022-10-21 05:38:46 +02:00
|
|
|
IndentCaseLabels: true
|
2022-03-18 14:34:27 +01:00
|
|
|
IndentExternBlock: NoIndent
|
|
|
|
IndentGotoLabels: false
|
|
|
|
IndentPPDirectives: AfterHash
|
2022-10-30 04:28:45 +01:00
|
|
|
IndentRequires: true # IndentRequiresClause beginning with 15
|
2022-03-18 14:34:27 +01:00
|
|
|
IndentWidth: 4
|
|
|
|
IndentWrappedFunctionNames: false
|
2022-10-30 04:28:45 +01:00
|
|
|
# InsertBraces: true # 15
|
2022-04-19 22:47:54 +02:00
|
|
|
InsertTrailingCommas: None
|
2022-03-18 14:34:27 +01:00
|
|
|
KeepEmptyLinesAtTheStartOfBlocks: true
|
2022-04-19 22:47:54 +02:00
|
|
|
LambdaBodyIndentation: Signature
|
|
|
|
# MacroBlockBegin:
|
|
|
|
# MacroBlockEnd:
|
2022-03-18 14:34:27 +01:00
|
|
|
MaxEmptyLinesToKeep: 1
|
|
|
|
NamespaceIndentation: None
|
2022-04-19 22:47:54 +02:00
|
|
|
# NamespaceMacros:
|
2022-03-18 14:34:27 +01:00
|
|
|
PenaltyBreakAssignment: 250
|
|
|
|
PenaltyBreakBeforeFirstCallParameter: 300
|
|
|
|
# PenaltyBreakComment: 300
|
|
|
|
# PenaltyBreakFirstLessLess: 120
|
|
|
|
# PenaltyBreakString: 1000
|
|
|
|
# PenaltyBreakTemplateDeclaration: 10
|
2022-10-30 04:28:45 +01:00
|
|
|
PenaltyBreakOpenParenthesis: 50 # 14
|
2022-03-18 14:34:27 +01:00
|
|
|
# PenaltyExcessCharacter: 1000000
|
|
|
|
# PenaltyIndentedWhitespace:
|
|
|
|
PenaltyReturnTypeOnItsOwnLine: 100
|
|
|
|
PointerAlignment: Right
|
|
|
|
ReflowComments: true
|
2022-10-30 04:28:45 +01:00
|
|
|
SeparateDefinitionBlocks: Always # 14
|
2022-04-19 22:47:54 +02:00
|
|
|
SortIncludes: CaseInsensitive
|
2022-03-18 14:34:27 +01:00
|
|
|
SortUsingDeclarations: true
|
|
|
|
SpaceAfterCStyleCast: false
|
|
|
|
SpaceAfterLogicalNot: false
|
|
|
|
SpaceAfterTemplateKeyword: false
|
|
|
|
SpaceAroundPointerQualifiers: Default
|
2022-10-30 04:28:45 +01:00
|
|
|
QualifierAlignment: Left # 14
|
2022-03-18 14:34:27 +01:00
|
|
|
SpaceBeforeAssignmentOperators: true
|
2022-04-19 22:47:54 +02:00
|
|
|
SpaceBeforeCaseColon: false
|
2022-03-18 14:34:27 +01:00
|
|
|
SpaceBeforeCpp11BracedList: false
|
|
|
|
SpaceBeforeCtorInitializerColon: true
|
|
|
|
SpaceBeforeInheritanceColon: true
|
|
|
|
SpaceBeforeParens: ControlStatements
|
|
|
|
SpaceBeforeRangeBasedForLoopColon: true
|
|
|
|
SpaceBeforeSquareBrackets: false
|
|
|
|
SpaceInEmptyBlock: false
|
|
|
|
SpaceInEmptyParentheses: false
|
|
|
|
SpacesBeforeTrailingComments: 1
|
|
|
|
SpacesInAngles: false
|
|
|
|
SpacesInCStyleCastParentheses: false
|
|
|
|
SpacesInConditionalStatement: false
|
|
|
|
SpacesInContainerLiterals: false
|
|
|
|
SpacesInParentheses: false
|
|
|
|
SpacesInSquareBrackets: false
|
|
|
|
Standard: Auto
|
2022-04-19 22:47:54 +02:00
|
|
|
StatementAttributeLikeMacros: [emit]
|
|
|
|
# StatementMacros: [Q_UNUSED, QT_REQUIRE_VERSION]
|
2022-03-18 14:34:27 +01:00
|
|
|
TabWidth: 4
|
2022-04-19 22:47:54 +02:00
|
|
|
# TypenameMacros: ['STACK_OF', 'LIST']
|
2022-03-18 14:34:27 +01:00
|
|
|
UseCRLF: false
|
|
|
|
UseTab: Never
|
2022-04-19 22:47:54 +02:00
|
|
|
# WhitespaceSensitiveMacros: ['STRINGIZE', 'PP_STRINGIZE']
|
2022-03-18 14:34:27 +01:00
|
|
|
...
|
2022-10-21 05:38:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
# vim: set ft=yaml: -*- mode: yaml -*-
|