Files
mp-units/.clang-format

276 lines
7.6 KiB
Plaintext
Raw Normal View History

2018-08-22 12:11:19 +02:00
---
2023-04-21 15:22:56 +01:00
BasedOnStyle: Google
2018-08-22 12:11:19 +02:00
---
2023-04-21 15:22:56 +01:00
Language: Cpp
2018-08-22 12:11:19 +02:00
AccessModifierOffset: -2
# AlignAfterOpenBracket: Align
# AlignArrayOfStructures: None
2023-04-21 15:22:56 +01:00
# AlignConsecutiveAssignments:
# Enabled: false
# AcrossEmptyLines: false
# AcrossComments: false
# AlignCompound: false
# AlignFunctionPointers: false
2023-04-21 15:22:56 +01:00
# PadOperators: true
# AlignConsecutiveBitFields:
# Enabled: false
# AcrossEmptyLines: false
# AcrossComments: false
# AlignCompound: false
# AlignFunctionPointers: false
2023-04-21 15:22:56 +01:00
# PadOperators: false
# AlignConsecutiveDeclarations:
# Enabled: false
# AcrossEmptyLines: false
# AcrossComments: false
# AlignCompound: false
# AlignFunctionPointers: false
2023-04-21 15:22:56 +01:00
# PadOperators: false
# AlignConsecutiveMacros:
# Enabled: false
# AcrossEmptyLines: false
# AcrossComments: false
# AlignCompound: false
# AlignFunctionPointers: false
2023-04-21 15:22:56 +01:00
# PadOperators: false
# AlignConsecutiveShortCaseStatements:
# Enabled: false
# AcrossEmptyLines: false
# AcrossComments: false
# AlignCaseColons: false
# AlignEscapedNewlines: Left
# AlignOperands: Align
2023-04-21 15:22:56 +01:00
# AlignTrailingComments:
# Kind: Always
# OverEmptyLines: 0
# AllowAllArgumentsOnNextLine: true
2018-08-22 12:11:19 +02:00
# AllowAllParametersOfDeclarationOnNextLine: true
# AllowBreakBeforeNoexceptSpecifier: Never
# AllowShortBlocksOnASingleLine: Never
2018-08-22 12:11:19 +02:00
# AllowShortCaseLabelsOnASingleLine: false
# AllowShortCompoundRequirementOnASingleLine: true
2023-04-21 15:22:56 +01:00
# AllowShortEnumsOnASingleLine: true
2018-08-22 12:11:19 +02:00
# AllowShortFunctionsOnASingleLine: All
# AllowShortIfStatementsOnASingleLine: WithoutElse
2023-04-21 15:22:56 +01:00
# AllowShortLambdasOnASingleLine: All
2018-08-22 12:11:19 +02:00
# AllowShortLoopsOnASingleLine: true
# AlwaysBreakAfterDefinitionReturnType: None
# AlwaysBreakAfterReturnType: None
# AlwaysBreakBeforeMultilineStrings: true
# AlwaysBreakTemplateDeclarations: Yes
# AttributeMacros:
# - __capability
2018-08-22 12:11:19 +02:00
# BinPackArguments: true
# BinPackParameters: true
2023-04-21 15:22:56 +01:00
# BitFieldColonSpacing: Both
2019-12-06 12:19:11 +01:00
BraceWrapping:
2023-04-21 15:22:56 +01:00
# AfterCaseLabel: false
# AfterClass: false
# AfterControlStatement: Never
# AfterEnum: false
# AfterExternBlock: false
AfterFunction: true
# AfterNamespace: false
# AfterObjCDeclaration: false
# AfterStruct: false
# AfterUnion: false
# BeforeCatch: false
# BeforeElse: false
# BeforeLambdaBody: false
# BeforeWhile: false
# IndentBraces: false
# SplitEmptyFunction: true
SplitEmptyRecord: false
# SplitEmptyNamespace: true
# BreakAdjacentStringLiterals: true
# BreakAfterAttributes: Leave
2023-04-21 15:22:56 +01:00
# BreakAfterJavaFieldAnnotations: false
# BreakArrays: true
2018-08-22 12:11:19 +02:00
# BreakBeforeBinaryOperators: None
# BreakBeforeConceptDeclarations: Always
2019-12-06 12:19:11 +01:00
BreakBeforeBraces: Custom
# BreakBeforeInlineASMColon: OnlyMultiline
2019-12-06 12:19:11 +01:00
# BreakBeforeTernaryOperators: true
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
2018-08-22 12:11:19 +02:00
# BreakStringLiterals: true
2023-04-21 15:22:56 +01:00
ColumnLimit: 120
CommentPragmas: "^ NOLINT"
# CommentPragmas: '^ IWYU pragma:'
# CompactNamespaces: false
2018-08-22 12:11:19 +02:00
# ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 2
2018-08-22 12:11:19 +02:00
# Cpp11BracedListStyle: true
DerivePointerAlignment: false
# DisableFormat: false
# EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: Leave
2018-08-22 12:11:19 +02:00
# ExperimentalAutoDetectBinPacking: false
# FixNamespaceComments: true
# ForEachMacros:
# - foreach
# - Q_FOREACH
# - BOOST_FOREACH
# IfMacros:
# - KJ_IF_MAYBE
2023-04-21 15:22:56 +01:00
IncludeBlocks: Merge
2022-03-18 14:34:59 +01:00
IncludeCategories:
2023-04-21 15:22:56 +01:00
- Regex: '^".*'
Priority: 1
- Regex: '^".+/.*'
Priority: 2
- Regex: "^<.+/.*"
Priority: 3
- Regex: '^<.*\.h>'
Priority: 4
- Regex: "^<.*"
Priority: 5
# IncludeIsMainRegex: '([-_](test|unittest))?$'
# IncludeIsMainSourceRegex: ''
# IndentAccessModifiers: false
# IndentCaseBlocks: false
2023-04-21 15:22:56 +01:00
# IndentCaseLabels: true
# IndentExternBlock: AfterExternBlock
# IndentGotoLabels: true
# IndentPPDirectives: None
# IndentRequiresClause: true
2018-08-22 12:11:19 +02:00
# IndentWidth: 2
# IndentWrappedFunctionNames: false
# InsertBraces: false
# InsertNewlineAtEOF: false
# InsertTrailingCommas: None
# IntegerLiteralSeparator:
# Binary: 0
# BinaryMinDigits: 0
# Decimal: 0
# DecimalMinDigits: 0
# Hex: 0
# HexMinDigits: 0
2018-08-22 12:11:19 +02:00
# JavaScriptQuotes: Leave
# JavaScriptWrapImports: true
# KeepEmptyLinesAtTheStartOfBlocks: false
# KeepEmptyLinesAtEOF: false
# LambdaBodyIndentation: Signature
# LineEnding: DeriveLF
2018-08-22 12:11:19 +02:00
# MacroBlockBegin: ''
# MacroBlockEnd: ''
MaxEmptyLinesToKeep: 2
2019-12-06 12:19:11 +01:00
# NamespaceIndentation: None
# ObjCBinPackProtocolList: Never
2018-08-22 12:11:19 +02:00
# ObjCBlockIndentWidth: 2
# ObjCBreakBeforeNestedBlockParam: true
2018-08-22 12:11:19 +02:00
# ObjCSpaceAfterProperty: false
# ObjCSpaceBeforeProtocolList: true
2023-04-21 15:22:56 +01:00
# PackConstructorInitializers: NextLine
# PenaltyBreakAssignment: 2
2018-08-22 12:11:19 +02:00
# PenaltyBreakBeforeFirstCallParameter: 1
# PenaltyBreakComment: 300
# PenaltyBreakFirstLessLess: 120
# PenaltyBreakOpenParenthesis: 0
# PenaltyBreakScopeResolution: 500
2018-08-22 12:11:19 +02:00
# PenaltyBreakString: 1000
# PenaltyBreakTemplateDeclaration: 10
2018-08-22 12:11:19 +02:00
# PenaltyExcessCharacter: 1000000
# PenaltyIndentedWhitespace: 0
2023-04-21 15:22:56 +01:00
# PenaltyReturnTypeOnItsOwnLine: 200
2018-08-22 12:11:19 +02:00
# PointerAlignment: Left
# PPIndentWidth: -1
2023-04-21 15:22:56 +01:00
QualifierAlignment: Left
# RawStringFormats:
# - Language: Cpp
# Delimiters:
# - cc
# - CC
# - cpp
# - Cpp
# - CPP
# - 'c++'
# - 'C++'
# CanonicalDelimiter: ''
# BasedOnStyle: google
# - Language: TextProto
# Delimiters:
# - pb
# - PB
# - proto
# - PROTO
# EnclosingFunctions:
# - EqualsProto
# - EquivToProto
# - PARSE_PARTIAL_TEXT_PROTO
# - PARSE_TEST_PROTO
# - PARSE_TEXT_PROTO
# - ParseTextOrDie
# - ParseTextProtoOrDie
# - ParseTestProto
# - ParsePartialTestProto
# CanonicalDelimiter: pb
# BasedOnStyle: google
# ReferenceAlignment: Pointer
2018-08-22 12:11:19 +02:00
# ReflowComments: true
# RemoveBracesLLVM: false
# RemoveParentheses: Leave
2023-04-21 15:22:56 +01:00
# RemoveSemicolon: false
# RequiresClausePosition: OwnLine
2023-04-21 15:22:56 +01:00
# RequiresExpressionIndentation: OuterScope
# SeparateDefinitionBlocks: Leave
# ShortNamespaceLines: 1
# SkipMacroDefinitionBody: false
# SortIncludes: CaseSensitive
# SortJavaStaticImport: Before
SortUsingDeclarations: false
2018-08-22 12:11:19 +02:00
# SpaceAfterCStyleCast: false
# SpaceAfterLogicalNot: false
2018-08-22 12:11:19 +02:00
SpaceAfterTemplateKeyword: false
2023-04-21 15:22:56 +01:00
# SpaceAroundPointerQualifiers: Default
2018-08-22 12:11:19 +02:00
# SpaceBeforeAssignmentOperators: true
# SpaceBeforeCaseColon: false
# SpaceBeforeCpp11BracedList: false
2019-12-06 12:19:11 +01:00
# SpaceBeforeCtorInitializerColon: true
# SpaceBeforeInheritanceColon: true
# SpaceBeforeJsonColon: false
2019-12-06 12:19:11 +01:00
# SpaceBeforeParens: ControlStatements
SpaceBeforeParensOptions:
2023-04-21 15:22:56 +01:00
# AfterControlStatements: true
# AfterForeachMacros: true
# AfterFunctionDefinitionName: false
# AfterFunctionDeclarationName: false
# AfterIfMacros: true
# AfterOverloadedOperator: false
# AfterPlacementOperator: true
AfterRequiresInClause: true
# AfterRequiresInExpression: false
# BeforeNonEmptyParentheses: false
# SpaceBeforeRangeBasedForLoopColon: true
2023-04-21 15:22:56 +01:00
# SpaceBeforeSquareBrackets: false
# SpaceInEmptyBlock: false
2018-08-22 12:11:19 +02:00
# SpacesBeforeTrailingComments: 2
# SpacesInAngles: Never
# SpacesInContainerLiterals: true
# SpacesInLineCommentPrefix:
# Minimum: 1
# Maximum: -1
# SpacesInParens: Never
# SpacesInParensOptions:
# InCStyleCasts: false
# InConditionalStatements: false
# InEmptyParentheses: false
# Other: false
2018-08-22 12:11:19 +02:00
# SpacesInSquareBrackets: false
2023-04-21 15:22:56 +01:00
# Standard: Auto
# StatementAttributeLikeMacros:
# - Q_EMIT
# StatementMacros:
# - Q_UNUSED
# - QT_REQUIRE_VERSION
2018-08-22 12:11:19 +02:00
# TabWidth: 8
# UseTab: Never
# VerilogBreakBetweenInstancePorts: true
# WhitespaceSensitiveMacros:
# - BOOST_PP_STRINGIZE
# - CF_SWIFT_NAME
2023-04-21 15:22:56 +01:00
# - NS_SWIFT_NAME
# - PP_STRINGIZE
# - STRINGIZE
# ...