Files
mp-units/.clang-format
T

166 lines
4.5 KiB
YAML
Raw Normal View History

2018-08-22 12:11:19 +02:00
---
BasedOnStyle: Google
---
Language: Cpp
AccessModifierOffset: -2
# AlignAfterOpenBracket: Align
# AlignConsecutiveAssignments: false
# AlignConsecutiveDeclarations: false
2019-10-14 10:50:40 +02:00
# AlignConsecutiveMacros: false
# AlignEscapedNewlines: Left
2018-08-22 12:11:19 +02:00
# AlignOperands: true
# AlignTrailingComments: true
2019-10-14 10:50:40 +02:00
# AllowAllArgumentsOnNextLine: true
# AllowAllConstructorInitializersOnNextLine: true
2018-08-22 12:11:19 +02:00
# AllowAllParametersOfDeclarationOnNextLine: true
2019-10-14 10:50:40 +02:00
# AllowShortBlocksOnASingleLine: Never
2018-08-22 12:11:19 +02:00
# AllowShortCaseLabelsOnASingleLine: false
# AllowShortFunctionsOnASingleLine: All
2019-10-14 10:50:40 +02:00
# AllowShortIfStatementsOnASingleLine: WithoutElse
# AllowShortLambdasOnASingleLine: All
2018-08-22 12:11:19 +02:00
# AllowShortLoopsOnASingleLine: true
# AlwaysBreakAfterDefinitionReturnType: None
# AlwaysBreakAfterReturnType: None
# AlwaysBreakBeforeMultilineStrings: true
2019-10-14 10:50:40 +02:00
# AlwaysBreakTemplateDeclarations: Yes
2018-08-22 12:11:19 +02:00
# BinPackArguments: true
# BinPackParameters: true
2019-12-06 12:19:11 +01:00
BraceWrapping:
2019-10-14 10:50:40 +02:00
# AfterCaseLabel: false
2019-12-17 09:16:04 +01:00
AfterClass: false
2018-08-22 12:11:19 +02:00
# AfterControlStatement: false
# AfterEnum: false
2019-12-06 12:19:11 +01:00
AfterFunction: true
2018-08-22 12:11:19 +02:00
# AfterNamespace: false
# AfterObjCDeclaration: false
2019-12-17 09:16:04 +01:00
AfterStruct: false
2018-08-22 12:11:19 +02:00
# AfterUnion: false
2019-10-14 10:50:40 +02:00
# AfterExternBlock: false
2018-08-22 12:11:19 +02:00
# BeforeCatch: false
# BeforeElse: false
# IndentBraces: false
2019-10-14 10:50:40 +02:00
# SplitEmptyFunction: true
# SplitEmptyRecord: true
# SplitEmptyNamespace: true
# BreakAfterJavaFieldAnnotations: false
2018-08-22 12:11:19 +02:00
# BreakBeforeBinaryOperators: None
2019-12-06 12:19:11 +01:00
BreakBeforeBraces: Custom
2019-10-14 10:50:40 +02:00
# BreakBeforeInheritanceComma: false
2019-12-06 12:19:11 +01:00
# BreakBeforeTernaryOperators: true
2019-10-14 10:50:40 +02:00
BreakConstructorInitializers: AfterColon
2018-08-22 12:11:19 +02:00
BreakConstructorInitializersBeforeComma: true
2019-10-14 10:50:40 +02:00
BreakInheritanceList: AfterColon
2018-08-22 12:11:19 +02:00
# BreakStringLiterals: true
ColumnLimit: 120
CommentPragmas: '^ NOLINT'
2019-10-14 10:50:40 +02:00
# CompactNamespaces: false
2018-08-22 12:11:19 +02:00
# ConstructorInitializerAllOnOneLineOrOnePerLine: true
# ConstructorInitializerIndentWidth: 4
# ContinuationIndentWidth: 4
# Cpp11BracedListStyle: true
DerivePointerAlignment: false
# DisableFormat: false
# ExperimentalAutoDetectBinPacking: false
2019-10-14 10:50:40 +02:00
# FixNamespaceComments: true
2019-10-14 10:53:02 +02:00
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
2019-12-17 09:16:04 +01:00
- SECTION
2019-10-14 10:53:02 +02:00
- GIVEN
- WHEN
- THEN
2019-10-14 10:50:40 +02:00
IncludeBlocks: Merge
2018-08-22 12:11:19 +02:00
IncludeCategories:
- Regex: '^".*'
Priority: 1
- Regex: '^".+/.*'
Priority: 2
- Regex: '^<.+/.*'
Priority: 3
- Regex: '^<.*\.h>'
Priority: 4
- Regex: '^<.*'
Priority: 5
2019-10-14 10:50:40 +02:00
# IncludeIsMainRegex: '([-_](test)(_.+)?)?$'
2018-08-22 12:11:19 +02:00
# IndentCaseLabels: true
2019-10-14 10:50:40 +02:00
# IndentGotoLabels: true
# IndentPPDirectives: None
2018-08-22 12:11:19 +02:00
# IndentWidth: 2
# IndentWrappedFunctionNames: false
# JavaScriptQuotes: Leave
# JavaScriptWrapImports: true
2019-10-14 10:50:40 +02:00
# KeepEmptyLinesAtTheStartOfBlocks: false
2018-08-22 12:11:19 +02:00
# MacroBlockBegin: ''
# MacroBlockEnd: ''
# MaxEmptyLinesToKeep: 1
2019-12-06 12:19:11 +01:00
# NamespaceIndentation: None
2019-10-14 10:50:40 +02:00
# ObjCBinPackProtocolList: Never
2018-08-22 12:11:19 +02:00
# ObjCBlockIndentWidth: 2
# ObjCSpaceAfterProperty: false
2019-10-14 10:50:40 +02:00
# ObjCSpaceBeforeProtocolList: true
# PenaltyBreakAssignment: 2
2018-08-22 12:11:19 +02:00
# PenaltyBreakBeforeFirstCallParameter: 1
# PenaltyBreakComment: 300
# PenaltyBreakFirstLessLess: 120
# PenaltyBreakString: 1000
2019-10-14 10:50:40 +02:00
# PenaltyBreakTemplateDeclaration: 10
2018-08-22 12:11:19 +02:00
# PenaltyExcessCharacter: 1000000
# PenaltyReturnTypeOnItsOwnLine: 200
# PointerAlignment: Left
2019-10-14 10:50:40 +02:00
# 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
# CanonicalDelimiter: ''
# BasedOnStyle: google
2018-08-22 12:11:19 +02:00
# ReflowComments: true
# SortIncludes: true
2019-10-14 10:50:40 +02:00
# SortUsingDeclarations: true
2018-08-22 12:11:19 +02:00
# SpaceAfterCStyleCast: false
2019-10-14 10:50:40 +02:00
# SpaceAfterLogicalNot: false
2018-08-22 12:11:19 +02:00
SpaceAfterTemplateKeyword: false
# SpaceBeforeAssignmentOperators: true
2019-10-14 10:50:40 +02:00
# SpaceBeforeCpp11BracedList: false
2019-12-06 12:19:11 +01:00
# SpaceBeforeCtorInitializerColon: true
2019-10-14 10:50:40 +02:00
# SpaceBeforeInheritanceColon: true
2019-12-06 12:19:11 +01:00
# SpaceBeforeParens: ControlStatements
2019-10-14 10:50:40 +02:00
# SpaceBeforeRangeBasedForLoopColon: true
# SpaceInEmptyBlock: false
2018-08-22 12:11:19 +02:00
# SpaceInEmptyParentheses: false
# SpacesBeforeTrailingComments: 2
# SpacesInAngles: false
# SpacesInCStyleCastParentheses: false
2019-10-14 10:50:40 +02:00
# SpacesInContainerLiterals: true
2018-08-22 12:11:19 +02:00
# SpacesInParentheses: false
# SpacesInSquareBrackets: false
2019-10-14 10:50:40 +02:00
Standard: Latest
# StatementMacros:
# - Q_UNUSED
# - QT_REQUIRE_VERSION
2018-08-22 12:11:19 +02:00
# TabWidth: 8
# UseTab: Never
2019-10-14 10:50:40 +02:00
# ...