rssguard/.clang-format

197 lines
5.4 KiB
Plaintext
Raw Normal View History

2022-04-09 09:12:22 +02:00
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: 0
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveMacros: Consecutive
2022-04-09 09:12:22 +02:00
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: None
AlignConsecutiveDeclarations: None
AlignEscapedNewlines: Left
2022-04-09 09:12:22 +02:00
AlignOperands: Align
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortEnumsOnASingleLine: false
2022-04-09 09:12:22 +02:00
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
2022-04-09 09:35:55 +02:00
AllowShortFunctionsOnASingleLine: Empty
AllowShortLambdasOnASingleLine: Empty
2022-04-09 09:12:22 +02:00
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
2022-04-09 09:12:22 +02:00
AttributeMacros:
- __capability
2022-04-09 09:41:51 +02:00
BinPackArguments: false
BinPackParameters: false
2022-04-09 09:12:22 +02:00
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
2022-04-09 18:44:32 +02:00
BeforeCatch: true
2022-04-09 09:35:55 +02:00
BeforeElse: true
2022-04-09 09:12:22 +02:00
BeforeLambdaBody: false
2022-04-09 09:35:55 +02:00
BeforeWhile: true
2022-04-09 09:12:22 +02:00
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeConceptDeclarations: true
2022-04-09 09:35:55 +02:00
BreakBeforeBraces: Custom
2022-04-09 09:12:22 +02:00
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 120
CommentPragmas: '^ IWYU pragma:'
2022-04-09 09:35:55 +02:00
QualifierAlignment: Left
2022-04-09 09:12:22 +02:00
CompactNamespaces: false
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
Cpp11BracedListStyle: true
DeriveLineEnding: true
DerivePointerAlignment: false
DisableFormat: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
PackConstructorInitializers: BinPack
BasedOnStyle: ''
ConstructorInitializerAllOnOneLineOrOnePerLine: false
AllowAllConstructorInitializersOnNextLine: true
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IfMacros:
- KJ_IF_MAYBE
2024-03-19 10:21:52 +01:00
IncludeBlocks: Regroup
2022-04-09 09:12:22 +02:00
IncludeCategories:
2024-03-19 10:21:52 +01:00
- Regex: '^"ui_'
2022-04-09 09:12:22 +02:00
Priority: 2
SortPriority: 0
CaseSensitive: false
2024-03-19 10:21:52 +01:00
- Regex: '^".+'
2022-04-09 09:12:22 +02:00
Priority: 1
SortPriority: 0
CaseSensitive: false
2024-03-19 10:21:52 +01:00
- Regex: '^<[A-Z]'
2024-03-19 10:31:49 +01:00
Priority: 4
2024-03-19 10:21:52 +01:00
SortPriority: 0
CaseSensitive: true
- Regex: '^<[a-z0-9]'
2024-03-19 10:31:49 +01:00
Priority: 3
2024-03-19 10:21:52 +01:00
SortPriority: 0
CaseSensitive: true
2022-04-09 09:12:22 +02:00
IncludeIsMainRegex: '(Test)?$'
IncludeIsMainSourceRegex: ''
2022-04-09 09:35:55 +02:00
IndentAccessModifiers: true
2022-04-09 09:55:11 +02:00
IndentCaseLabels: true
2022-04-09 09:12:22 +02:00
IndentCaseBlocks: false
IndentGotoLabels: true
IndentPPDirectives: None
IndentExternBlock: AfterExternBlock
IndentRequires: false
IndentWidth: 2
IndentWrappedFunctionNames: false
InsertTrailingCommas: None
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
LambdaBodyIndentation: Signature
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
2022-04-09 09:35:55 +02:00
NamespaceIndentation: All
2022-04-09 09:12:22 +02:00
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
2022-04-09 09:41:51 +02:00
PenaltyBreakOpenParenthesis: 5000
2022-04-09 09:12:22 +02:00
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
2022-04-09 09:41:51 +02:00
PenaltyReturnTypeOnItsOwnLine: 5000
2022-04-09 09:12:22 +02:00
PenaltyIndentedWhitespace: 0
2022-04-09 09:35:55 +02:00
PointerAlignment: Left
2022-04-09 09:12:22 +02:00
PPIndentWidth: -1
ReferenceAlignment: Pointer
ReflowComments: true
RemoveBracesLLVM: false
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 1
SortIncludes: CaseSensitive
SortJavaStaticImport: Before
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterForeachMacros: true
AfterFunctionDefinitionName: false
AfterFunctionDeclarationName: false
AfterIfMacros: true
AfterOverloadedOperator: false
BeforeNonEmptyParentheses: false
SpaceAroundPointerQualifiers: Default
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: Never
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeSquareBrackets: false
BitFieldColonSpacing: Both
Standard: Latest
StatementAttributeLikeMacros:
- Q_EMIT
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 8
UseCRLF: false
UseTab: Never
WhitespaceSensitiveMacros:
- STRINGIZE
- PP_STRINGIZE
- BOOST_PP_STRINGIZE
- NS_SWIFT_NAME
- CF_SWIFT_NAME
...