basiccmake/.clang-format

204 lines
5.3 KiB
Plaintext
Raw Permalink Normal View History

2021-11-08 14:00:16 +00:00
---
Language: Cpp
# BasedOnStyle: Google
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
2022-11-06 03:09:33 +00:00
AlignArrayOfStructures: None
AlignConsecutiveMacros: None
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: None
AlignConsecutiveDeclarations: None
2021-11-08 14:00:16 +00:00
AlignEscapedNewlines: Left
AlignOperands: Align
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
2022-11-06 03:09:33 +00:00
AllowShortEnumsOnASingleLine: false
2021-11-08 14:00:16 +00:00
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortLambdasOnASingleLine: All
2022-11-06 03:09:33 +00:00
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
2021-11-08 14:00:16 +00:00
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: Yes
2022-11-06 03:09:33 +00:00
AttributeMacros:
- __capability
2021-11-08 14:00:16 +00:00
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
2022-11-06 03:09:33 +00:00
BreakBeforeConceptDeclarations: true
2021-11-08 14:00:16 +00:00
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DeriveLineEnding: true
DerivePointerAlignment: true
DisableFormat: false
2022-11-06 03:09:33 +00:00
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
2021-11-08 14:00:16 +00:00
ExperimentalAutoDetectBinPacking: false
2022-11-06 03:09:33 +00:00
BasedOnStyle: ''
ConstructorInitializerAllOnOneLineOrOnePerLine: false
AllowAllConstructorInitializersOnNextLine: true
2021-11-08 14:00:16 +00:00
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
2022-11-06 03:09:33 +00:00
IfMacros:
- KJ_IF_MAYBE
2021-11-08 14:00:16 +00:00
IncludeBlocks: Regroup
IncludeCategories:
2022-11-06 03:09:33 +00:00
- Regex: '^<sys/.*\.h>$'
2021-11-08 14:00:16 +00:00
Priority: 1
2022-11-06 03:09:33 +00:00
- Regex: '^<.*\.h>$'
2021-11-08 14:00:16 +00:00
Priority: 2
- Regex: '.*'
Priority: 3
IncludeIsMainRegex: '([-_](test|unittest))?$'
IncludeIsMainSourceRegex: ''
2022-11-06 03:09:33 +00:00
IndentAccessModifiers: false
2021-11-08 14:00:16 +00:00
IndentCaseLabels: true
IndentCaseBlocks: false
IndentGotoLabels: true
IndentPPDirectives: None
IndentExternBlock: AfterExternBlock
2022-11-06 03:09:33 +00:00
IndentRequires: false
2021-11-08 14:00:16 +00:00
IndentWidth: 2
IndentWrappedFunctionNames: false
InsertTrailingCommas: None
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
2022-11-06 03:09:33 +00:00
LambdaBodyIndentation: Signature
2021-11-08 14:00:16 +00:00
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Never
ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
2022-11-06 03:09:33 +00:00
PenaltyIndentedWhitespace: 0
2021-11-08 14:00:16 +00:00
PointerAlignment: Left
2022-11-06 03:09:33 +00:00
PPIndentWidth: -1
2021-11-08 14:00:16 +00: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
- ParseTestProto
- ParsePartialTestProto
2022-11-06 03:09:33 +00:00
CanonicalDelimiter: pb
2021-11-08 14:00:16 +00:00
BasedOnStyle: google
2022-11-06 03:09:33 +00:00
ReferenceAlignment: Pointer
2021-11-08 14:00:16 +00:00
ReflowComments: true
2022-11-06 03:09:33 +00:00
ShortNamespaceLines: 1
SortIncludes: CaseSensitive
SortJavaStaticImport: Before
2021-11-08 14:00:16 +00:00
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
2022-11-06 03:09:33 +00:00
SpaceBeforeCaseColon: false
2021-11-08 14:00:16 +00:00
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
2022-11-06 03:09:33 +00:00
SpaceAroundPointerQualifiers: Default
2021-11-08 14:00:16 +00:00
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
2022-11-06 03:09:33 +00:00
SpacesInAngles: Never
2021-11-08 14:00:16 +00:00
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
2022-11-06 03:09:33 +00:00
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
2021-11-08 14:00:16 +00:00
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeSquareBrackets: false
2022-11-06 03:09:33 +00:00
BitFieldColonSpacing: Both
2021-11-08 14:00:16 +00:00
Standard: Auto
2022-11-06 03:09:33 +00:00
StatementAttributeLikeMacros:
- Q_EMIT
2021-11-08 14:00:16 +00:00
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 8
UseCRLF: false
UseTab: Never
WhitespaceSensitiveMacros:
- STRINGIZE
- PP_STRINGIZE
- BOOST_PP_STRINGIZE
2022-11-06 03:09:33 +00:00
- NS_SWIFT_NAME
- CF_SWIFT_NAME
2021-11-08 14:00:16 +00:00
...