goldendict-ng/.clang-format

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

146 lines
4 KiB
Plaintext
Raw Permalink Normal View History

---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
2022-10-28 02:49:27 +00:00
AlignConsecutiveAssignments: Consecutive
AlignConsecutiveBitFields: Consecutive
AlignConsecutiveDeclarations: None
AlignConsecutiveMacros: Consecutive
AlignEscapedNewlines: Left
2022-10-28 02:49:27 +00:00
AlignOperands: DontAlign
AlignTrailingComments: true
2022-06-19 01:46:39 +00:00
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: true
2022-10-28 02:49:27 +00:00
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortLambdasOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
2022-10-28 02:49:27 +00:00
AllowShortEnumsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: Yes
2022-06-19 01:46:39 +00:00
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
2022-10-28 02:49:27 +00:00
AfterCaseLabel: false
AfterClass: true
AfterControlStatement: Never
2022-10-28 02:49:27 +00:00
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: true
AfterUnion: true
AfterExternBlock: false
BeforeCatch: true
2022-10-28 02:49:27 +00:00
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: false
SplitEmptyNamespace: false
BeforeLambdaBody: false
BeforeWhile: false
2022-06-19 01:46:39 +00:00
BreakBeforeBinaryOperators: NonAssignment
2022-10-28 02:49:27 +00:00
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
2022-10-28 02:49:27 +00:00
BreakBeforeTernaryOperators: false
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: AfterColon
2022-10-28 02:49:27 +00:00
BreakStringLiterals: false
2022-06-19 01:46:39 +00:00
ColumnLimit: 120
QualifierAlignment: Leave
CompactNamespaces: false
2022-06-19 01:46:39 +00:00
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth : 2
2022-06-19 01:46:39 +00:00
ContinuationIndentWidth: 2
Cpp11BracedListStyle: true
2022-10-28 02:49:27 +00:00
DeriveLineEnding: false
DerivePointerAlignment: false
DisableFormat: false
EmptyLineAfterAccessModifier: Leave
EmptyLineBeforeAccessModifier: Always
2022-10-28 02:49:27 +00:00
ExperimentalAutoDetectBinPacking: true
AllowAllConstructorInitializersOnNextLine: true
FixNamespaceComments: true
ForEachMacros:
- Q_FOREACH
2022-10-28 02:49:27 +00:00
IncludeBlocks: Regroup
IndentCaseLabels: true
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentGotoLabels: true
2022-10-28 02:49:27 +00:00
IndentPPDirectives: BeforeHash
IndentExternBlock: AfterExternBlock
# IndentRequiresClause: true
IndentWidth: 2
IndentWrappedFunctionNames: false
# InsertBraces: false
InsertTrailingCommas: None
KeepEmptyLinesAtTheStartOfBlocks: true
LambdaBodyIndentation: Signature
MacroBlockBegin: ''
MacroBlockEnd: ''
2022-10-28 02:49:27 +00:00
MaxEmptyLinesToKeep: 2
NamespaceIndentation: None
PackConstructorInitializers: Never
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakOpenParenthesis: 0
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PenaltyIndentedWhitespace: 0
PointerAlignment: Middle
PPIndentWidth: -1
ReferenceAlignment: Pointer
2022-10-28 02:49:27 +00:00
ReflowComments: false
SortIncludes: Never
# RequiresClausePosition: OwnLine
RemoveBracesLLVM: false
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 1
2022-06-19 01:46:39 +00:00
SortUsingDeclarations: false
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
2022-10-28 02:49:27 +00:00
SpaceBeforeCtorInitializerColon: false
SpaceBeforeInheritanceColon: false
SpaceBeforeParens: ControlStatements
SpaceAroundPointerQualifiers: Default
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
2022-06-19 01:46:39 +00:00
SpacesInAngles: true
2022-10-28 02:49:27 +00:00
SpacesInConditionalStatement: true
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
2022-06-19 01:46:39 +00:00
SpacesInParentheses: true
SpacesInSquareBrackets: true
SpaceBeforeSquareBrackets: false
BitFieldColonSpacing: Both
Standard: Latest
StatementAttributeLikeMacros:
- Q_EMIT
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
UseCRLF: false
UseTab: Never
...