123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208 |
- # please use clang-format version 16 or later
- Standard: c++17
- AccessModifierOffset: -8
- AlignAfterOpenBracket: Align
- AlignConsecutiveAssignments: false
- AlignConsecutiveDeclarations: false
- AlignEscapedNewlines: Left
- AlignOperands: true
- AlignTrailingComments: true
- AllowAllArgumentsOnNextLine: false
- AllowAllConstructorInitializersOnNextLine: false
- AllowAllParametersOfDeclarationOnNextLine: false
- AllowShortBlocksOnASingleLine: false
- AllowShortCaseLabelsOnASingleLine: false
- AllowShortFunctionsOnASingleLine: Inline
- AllowShortIfStatementsOnASingleLine: false
- AllowShortLambdasOnASingleLine: Inline
- AllowShortLoopsOnASingleLine: false
- AlwaysBreakAfterDefinitionReturnType: None
- AlwaysBreakAfterReturnType: None
- AlwaysBreakBeforeMultilineStrings: false
- AlwaysBreakTemplateDeclarations: false
- BinPackArguments: true
- BinPackParameters: true
- BraceWrapping:
- AfterClass: false
- AfterControlStatement: false
- AfterEnum: false
- AfterFunction: true
- AfterNamespace: false
- AfterObjCDeclaration: false
- AfterStruct: false
- AfterUnion: false
- AfterExternBlock: false
- BeforeCatch: false
- BeforeElse: false
- IndentBraces: false
- SplitEmptyFunction: true
- SplitEmptyRecord: true
- SplitEmptyNamespace: true
- BreakBeforeBinaryOperators: None
- BreakBeforeBraces: Custom
- BreakBeforeTernaryOperators: true
- BreakConstructorInitializers: BeforeColon
- BreakStringLiterals: false # apparently unpredictable
- ColumnLimit: 120
- CompactNamespaces: false
- ConstructorInitializerAllOnOneLineOrOnePerLine: true
- ConstructorInitializerIndentWidth: 8
- ContinuationIndentWidth: 8
- Cpp11BracedListStyle: true
- DerivePointerAlignment: false
- DisableFormat: false
- FixNamespaceComments: true
- ForEachMacros:
- - 'json_object_foreach'
- - 'json_object_foreach_safe'
- - 'json_array_foreach'
- - 'HASH_ITER'
- IncludeBlocks: Preserve
- IndentCaseLabels: false
- IndentPPDirectives: None
- IndentWidth: 8
- IndentWrappedFunctionNames: false
- KeepEmptyLinesAtTheStartOfBlocks: true
- MaxEmptyLinesToKeep: 1
- NamespaceIndentation: None
- ObjCBinPackProtocolList: Auto
- ObjCBlockIndentWidth: 8
- ObjCSpaceAfterProperty: true
- ObjCSpaceBeforeProtocolList: true
- PenaltyBreakAssignment: 10
- PenaltyBreakBeforeFirstCallParameter: 30
- PenaltyBreakComment: 10
- PenaltyBreakFirstLessLess: 0
- PenaltyBreakString: 10
- PenaltyExcessCharacter: 100
- PenaltyReturnTypeOnItsOwnLine: 60
- PointerAlignment: Right
- ReflowComments: false
- SortIncludes: false
- SortUsingDeclarations: false
- SpaceAfterCStyleCast: false
- SpaceAfterLogicalNot: false
- SpaceAfterTemplateKeyword: false
- SpaceBeforeAssignmentOperators: true
- SpaceBeforeCtorInitializerColon: true
- SpaceBeforeInheritanceColon: true
- SpaceBeforeParens: ControlStatements
- SpaceBeforeRangeBasedForLoopColon: true
- SpaceInEmptyParentheses: false
- SpacesBeforeTrailingComments: 1
- SpacesInAngles: false
- SpacesInCStyleCastParentheses: false
- SpacesInContainerLiterals: false
- SpacesInParentheses: false
- SpacesInSquareBrackets: false
- StatementMacros:
- - 'Q_OBJECT'
- TabWidth: 8
- TypenameMacros:
- - 'DARRAY'
- UseTab: ForContinuationAndIndentation
- ---
- Language: ObjC
- AccessModifierOffset: 2
- AlignArrayOfStructures: Right
- AlignConsecutiveAssignments: None
- AlignConsecutiveBitFields: None
- AlignConsecutiveDeclarations: None
- AlignConsecutiveMacros:
- Enabled: true
- AcrossEmptyLines: false
- AcrossComments: true
- AllowShortBlocksOnASingleLine: Never
- AllowShortEnumsOnASingleLine: false
- AllowShortFunctionsOnASingleLine: Empty
- AllowShortIfStatementsOnASingleLine: Never
- AllowShortLambdasOnASingleLine: None
- AttributeMacros: ['__unused', '__autoreleasing', '_Nonnull', '__bridge']
- BitFieldColonSpacing: Both
- #BreakBeforeBraces: Webkit
- BreakBeforeBraces: Custom
- BraceWrapping:
- AfterCaseLabel: false
- AfterClass: true
- AfterControlStatement: Never
- AfterEnum: false
- AfterFunction: true
- AfterNamespace: false
- AfterObjCDeclaration: false
- AfterStruct: false
- AfterUnion: false
- AfterExternBlock: false
- BeforeCatch: false
- BeforeElse: false
- BeforeLambdaBody: false
- BeforeWhile: false
- IndentBraces: false
- SplitEmptyFunction: false
- SplitEmptyRecord: false
- SplitEmptyNamespace: true
- BreakAfterAttributes: Never
- BreakArrays: false
- BreakBeforeConceptDeclarations: Allowed
- BreakBeforeInlineASMColon: OnlyMultiline
- BreakConstructorInitializers: AfterColon
- BreakInheritanceList: AfterComma
- ColumnLimit: 120
- ConstructorInitializerIndentWidth: 4
- ContinuationIndentWidth: 4
- EmptyLineAfterAccessModifier: Never
- EmptyLineBeforeAccessModifier: LogicalBlock
- ExperimentalAutoDetectBinPacking: false
- FixNamespaceComments: true
- IndentAccessModifiers: false
- IndentCaseBlocks: false
- IndentCaseLabels: true
- IndentExternBlock: Indent
- IndentGotoLabels: false
- IndentRequiresClause: true
- IndentWidth: 4
- IndentWrappedFunctionNames: true
- InsertBraces: false
- InsertNewlineAtEOF: true
- KeepEmptyLinesAtTheStartOfBlocks: false
- LambdaBodyIndentation: Signature
- NamespaceIndentation: All
- ObjCBinPackProtocolList: Auto
- ObjCBlockIndentWidth: 4
- ObjCBreakBeforeNestedBlockParam: false
- ObjCSpaceAfterProperty: true
- ObjCSpaceBeforeProtocolList: true
- PPIndentWidth: -1
- PackConstructorInitializers: NextLine
- QualifierAlignment: Leave
- ReferenceAlignment: Right
- RemoveSemicolon: false
- RequiresClausePosition: WithPreceding
- RequiresExpressionIndentation: OuterScope
- SeparateDefinitionBlocks: Leave
- ShortNamespaceLines: 1
- SortIncludes: false
- #SortUsingDeclarations: LexicographicNumeric
- SortUsingDeclarations: true
- SpaceAfterCStyleCast: true
- SpaceAfterLogicalNot: false
- SpaceAroundPointerQualifiers: Default
- SpaceBeforeCaseColon: false
- SpaceBeforeCpp11BracedList: true
- SpaceBeforeCtorInitializerColon: true
- SpaceBeforeInheritanceColon: true
- SpaceBeforeParens: ControlStatements
- SpaceBeforeRangeBasedForLoopColon: true
- SpaceBeforeSquareBrackets: false
- SpaceInEmptyBlock: false
- SpaceInEmptyParentheses: false
- SpacesBeforeTrailingComments: 2
- SpacesInConditionalStatement: false
- SpacesInLineCommentPrefix:
- Minimum: 1
- Maximum: -1
- Standard: c++17
- TabWidth: 4
- UseTab: Never
|