mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-31 19:04:27 +02:00
chore: clang-format file updated for clang-format-12
clang-format-12 has still some issues with C++20 constraints declaration but is more usable now.
This commit is contained in:
@@ -4,52 +4,59 @@ BasedOnStyle: Google
|
|||||||
Language: Cpp
|
Language: Cpp
|
||||||
AccessModifierOffset: -2
|
AccessModifierOffset: -2
|
||||||
# AlignAfterOpenBracket: Align
|
# AlignAfterOpenBracket: Align
|
||||||
# AlignConsecutiveAssignments: false
|
# AlignConsecutiveMacros: None
|
||||||
# AlignConsecutiveDeclarations: false
|
# AlignConsecutiveAssignments: None
|
||||||
# AlignConsecutiveMacros: false
|
# AlignConsecutiveBitFields: None
|
||||||
|
# AlignConsecutiveDeclarations: None
|
||||||
# AlignEscapedNewlines: Left
|
# AlignEscapedNewlines: Left
|
||||||
# AlignOperands: true
|
# AlignOperands: Align
|
||||||
# AlignTrailingComments: true
|
# AlignTrailingComments: true
|
||||||
# AllowAllArgumentsOnNextLine: true
|
# AllowAllArgumentsOnNextLine: true
|
||||||
# AllowAllConstructorInitializersOnNextLine: true
|
# AllowAllConstructorInitializersOnNextLine: true
|
||||||
# AllowAllParametersOfDeclarationOnNextLine: true
|
# AllowAllParametersOfDeclarationOnNextLine: true
|
||||||
|
# AllowShortEnumsOnASingleLine: true
|
||||||
# AllowShortBlocksOnASingleLine: Never
|
# AllowShortBlocksOnASingleLine: Never
|
||||||
# AllowShortCaseLabelsOnASingleLine: false
|
# AllowShortCaseLabelsOnASingleLine: false
|
||||||
# AllowShortFunctionsOnASingleLine: All
|
# AllowShortFunctionsOnASingleLine: All
|
||||||
# AllowShortIfStatementsOnASingleLine: WithoutElse
|
|
||||||
# AllowShortLambdasOnASingleLine: All
|
# AllowShortLambdasOnASingleLine: All
|
||||||
|
# AllowShortIfStatementsOnASingleLine: WithoutElse
|
||||||
# AllowShortLoopsOnASingleLine: true
|
# AllowShortLoopsOnASingleLine: true
|
||||||
# AlwaysBreakAfterDefinitionReturnType: None
|
# AlwaysBreakAfterDefinitionReturnType: None
|
||||||
# AlwaysBreakAfterReturnType: None
|
# AlwaysBreakAfterReturnType: None
|
||||||
# AlwaysBreakBeforeMultilineStrings: true
|
# AlwaysBreakBeforeMultilineStrings: true
|
||||||
# AlwaysBreakTemplateDeclarations: Yes
|
# AlwaysBreakTemplateDeclarations: Yes
|
||||||
|
# AttributeMacros:
|
||||||
|
# - __capability
|
||||||
# BinPackArguments: true
|
# BinPackArguments: true
|
||||||
# BinPackParameters: true
|
# BinPackParameters: true
|
||||||
BraceWrapping:
|
BraceWrapping:
|
||||||
# AfterCaseLabel: false
|
# AfterCaseLabel: false
|
||||||
AfterClass: false
|
# AfterClass: false
|
||||||
# AfterControlStatement: false
|
# AfterControlStatement: Never
|
||||||
# AfterEnum: false
|
# AfterEnum: false
|
||||||
AfterFunction: true
|
AfterFunction: true
|
||||||
# AfterNamespace: false
|
# AfterNamespace: false
|
||||||
# AfterObjCDeclaration: false
|
# AfterObjCDeclaration: false
|
||||||
AfterStruct: false
|
# AfterStruct: false
|
||||||
# AfterUnion: false
|
# AfterUnion: false
|
||||||
# AfterExternBlock: false
|
# AfterExternBlock: false
|
||||||
# BeforeCatch: false
|
# BeforeCatch: false
|
||||||
# BeforeElse: false
|
# BeforeElse: false
|
||||||
|
# BeforeLambdaBody: false
|
||||||
|
# BeforeWhile: false
|
||||||
# IndentBraces: false
|
# IndentBraces: false
|
||||||
# SplitEmptyFunction: true
|
# SplitEmptyFunction: true
|
||||||
# SplitEmptyRecord: true
|
SplitEmptyRecord: false
|
||||||
# SplitEmptyNamespace: true
|
# SplitEmptyNamespace: true
|
||||||
# BreakAfterJavaFieldAnnotations: false
|
|
||||||
# BreakBeforeBinaryOperators: None
|
# BreakBeforeBinaryOperators: None
|
||||||
|
# BreakBeforeConceptDeclarations: true
|
||||||
BreakBeforeBraces: Custom
|
BreakBeforeBraces: Custom
|
||||||
# BreakBeforeInheritanceComma: false
|
# BreakBeforeInheritanceComma: false
|
||||||
# BreakBeforeTernaryOperators: true
|
|
||||||
BreakConstructorInitializers: AfterColon
|
|
||||||
BreakConstructorInitializersBeforeComma: true
|
|
||||||
BreakInheritanceList: AfterColon
|
BreakInheritanceList: AfterColon
|
||||||
|
# BreakBeforeTernaryOperators: true
|
||||||
|
BreakConstructorInitializersBeforeComma: true
|
||||||
|
BreakConstructorInitializers: AfterColon
|
||||||
|
# BreakAfterJavaFieldAnnotations: false
|
||||||
# BreakStringLiterals: true
|
# BreakStringLiterals: true
|
||||||
ColumnLimit: 120
|
ColumnLimit: 120
|
||||||
CommentPragmas: '^ NOLINT'
|
CommentPragmas: '^ NOLINT'
|
||||||
@@ -58,8 +65,10 @@ CommentPragmas: '^ NOLINT'
|
|||||||
# ConstructorInitializerIndentWidth: 4
|
# ConstructorInitializerIndentWidth: 4
|
||||||
# ContinuationIndentWidth: 4
|
# ContinuationIndentWidth: 4
|
||||||
# Cpp11BracedListStyle: true
|
# Cpp11BracedListStyle: true
|
||||||
|
DeriveLineEnding: false
|
||||||
DerivePointerAlignment: false
|
DerivePointerAlignment: false
|
||||||
# DisableFormat: false
|
# DisableFormat: false
|
||||||
|
EmptyLineBeforeAccessModifier: Leave
|
||||||
# ExperimentalAutoDetectBinPacking: false
|
# ExperimentalAutoDetectBinPacking: false
|
||||||
# FixNamespaceComments: true
|
# FixNamespaceComments: true
|
||||||
ForEachMacros:
|
ForEachMacros:
|
||||||
@@ -70,6 +79,8 @@ ForEachMacros:
|
|||||||
- GIVEN
|
- GIVEN
|
||||||
- WHEN
|
- WHEN
|
||||||
- THEN
|
- THEN
|
||||||
|
# StatementAttributeLikeMacros:
|
||||||
|
# - Q_EMIT
|
||||||
IncludeBlocks: Merge
|
IncludeBlocks: Merge
|
||||||
IncludeCategories:
|
IncludeCategories:
|
||||||
- Regex: '^".*'
|
- Regex: '^".*'
|
||||||
@@ -82,12 +93,17 @@ IncludeCategories:
|
|||||||
Priority: 4
|
Priority: 4
|
||||||
- Regex: '^<.*'
|
- Regex: '^<.*'
|
||||||
Priority: 5
|
Priority: 5
|
||||||
# IncludeIsMainRegex: '([-_](test)(_.+)?)?$'
|
# IncludeIsMainRegex: '([-_](test|unittest))?$'
|
||||||
|
# IncludeIsMainSourceRegex: ''
|
||||||
# IndentCaseLabels: true
|
# IndentCaseLabels: true
|
||||||
|
# IndentCaseBlocks: false
|
||||||
# IndentGotoLabels: true
|
# IndentGotoLabels: true
|
||||||
# IndentPPDirectives: None
|
# IndentPPDirectives: None
|
||||||
|
# IndentExternBlock: AfterExternBlock
|
||||||
|
IndentRequires: true
|
||||||
# IndentWidth: 2
|
# IndentWidth: 2
|
||||||
# IndentWrappedFunctionNames: false
|
# IndentWrappedFunctionNames: false
|
||||||
|
# InsertTrailingCommas: None
|
||||||
# JavaScriptQuotes: Leave
|
# JavaScriptQuotes: Leave
|
||||||
# JavaScriptWrapImports: true
|
# JavaScriptWrapImports: true
|
||||||
# KeepEmptyLinesAtTheStartOfBlocks: false
|
# KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
@@ -97,6 +113,7 @@ IncludeCategories:
|
|||||||
# NamespaceIndentation: None
|
# NamespaceIndentation: None
|
||||||
# ObjCBinPackProtocolList: Never
|
# ObjCBinPackProtocolList: Never
|
||||||
# ObjCBlockIndentWidth: 2
|
# ObjCBlockIndentWidth: 2
|
||||||
|
# ObjCBreakBeforeNestedBlockParam: true
|
||||||
# ObjCSpaceAfterProperty: false
|
# ObjCSpaceAfterProperty: false
|
||||||
# ObjCSpaceBeforeProtocolList: true
|
# ObjCSpaceBeforeProtocolList: true
|
||||||
# PenaltyBreakAssignment: 2
|
# PenaltyBreakAssignment: 2
|
||||||
@@ -107,6 +124,7 @@ IncludeCategories:
|
|||||||
# PenaltyBreakTemplateDeclaration: 10
|
# PenaltyBreakTemplateDeclaration: 10
|
||||||
# PenaltyExcessCharacter: 1000000
|
# PenaltyExcessCharacter: 1000000
|
||||||
# PenaltyReturnTypeOnItsOwnLine: 200
|
# PenaltyReturnTypeOnItsOwnLine: 200
|
||||||
|
# PenaltyIndentedWhitespace: 0
|
||||||
# PointerAlignment: Left
|
# PointerAlignment: Left
|
||||||
# RawStringFormats:
|
# RawStringFormats:
|
||||||
# - Language: Cpp
|
# - Language: Cpp
|
||||||
@@ -134,32 +152,47 @@ IncludeCategories:
|
|||||||
# - PARSE_TEXT_PROTO
|
# - PARSE_TEXT_PROTO
|
||||||
# - ParseTextOrDie
|
# - ParseTextOrDie
|
||||||
# - ParseTextProtoOrDie
|
# - ParseTextProtoOrDie
|
||||||
|
# - ParseTestProto
|
||||||
|
# - ParsePartialTestProto
|
||||||
# CanonicalDelimiter: ''
|
# CanonicalDelimiter: ''
|
||||||
# BasedOnStyle: google
|
# BasedOnStyle: google
|
||||||
# ReflowComments: true
|
# ReflowComments: true
|
||||||
# SortIncludes: true
|
# SortIncludes: true
|
||||||
|
# SortJavaStaticImport: Before
|
||||||
# SortUsingDeclarations: true
|
# SortUsingDeclarations: true
|
||||||
# SpaceAfterCStyleCast: false
|
# SpaceAfterCStyleCast: false
|
||||||
# SpaceAfterLogicalNot: false
|
# SpaceAfterLogicalNot: false
|
||||||
SpaceAfterTemplateKeyword: false
|
SpaceAfterTemplateKeyword: false
|
||||||
# SpaceBeforeAssignmentOperators: true
|
# SpaceBeforeAssignmentOperators: true
|
||||||
|
# SpaceBeforeCaseColon: false
|
||||||
# SpaceBeforeCpp11BracedList: false
|
# SpaceBeforeCpp11BracedList: false
|
||||||
# SpaceBeforeCtorInitializerColon: true
|
# SpaceBeforeCtorInitializerColon: true
|
||||||
# SpaceBeforeInheritanceColon: true
|
# SpaceBeforeInheritanceColon: true
|
||||||
# SpaceBeforeParens: ControlStatements
|
# SpaceBeforeParens: ControlStatements
|
||||||
|
# SpaceAroundPointerQualifiers: Default
|
||||||
# SpaceBeforeRangeBasedForLoopColon: true
|
# SpaceBeforeRangeBasedForLoopColon: true
|
||||||
# SpaceInEmptyBlock: false
|
# SpaceInEmptyBlock: false
|
||||||
# SpaceInEmptyParentheses: false
|
# SpaceInEmptyParentheses: false
|
||||||
# SpacesBeforeTrailingComments: 2
|
# SpacesBeforeTrailingComments: 2
|
||||||
# SpacesInAngles: false
|
# SpacesInAngles: false
|
||||||
# SpacesInCStyleCastParentheses: false
|
# SpacesInConditionalStatement: false
|
||||||
# SpacesInContainerLiterals: true
|
# SpacesInContainerLiterals: true
|
||||||
|
# SpacesInCStyleCastParentheses: false
|
||||||
# SpacesInParentheses: false
|
# SpacesInParentheses: false
|
||||||
# SpacesInSquareBrackets: false
|
# SpacesInSquareBrackets: false
|
||||||
|
# SpaceBeforeSquareBrackets: false
|
||||||
|
# BitFieldColonSpacing: Both
|
||||||
Standard: Latest
|
Standard: Latest
|
||||||
# StatementMacros:
|
# StatementMacros:
|
||||||
# - Q_UNUSED
|
# - Q_UNUSED
|
||||||
# - QT_REQUIRE_VERSION
|
# - QT_REQUIRE_VERSION
|
||||||
# TabWidth: 8
|
# TabWidth: 8
|
||||||
|
# UseCRLF: false
|
||||||
# UseTab: Never
|
# UseTab: Never
|
||||||
|
# WhitespaceSensitiveMacros:
|
||||||
|
# - STRINGIZE
|
||||||
|
# - PP_STRINGIZE
|
||||||
|
# - BOOST_PP_STRINGIZE
|
||||||
|
# - NS_SWIFT_NAME
|
||||||
|
# - CF_SWIFT_NAME
|
||||||
# ...
|
# ...
|
||||||
|
Reference in New Issue
Block a user