mirror of
https://github.com/prusa3d/PrusaSlicer.git
synced 2026-11-26 23:29:07 +00:00
Make it so all the values are pre-resolved before backend code runs. This includes: - spread values if MMU is used - expand parameters (first_layer_speed, extruder) - ensure slot parity (extruder_offset) - resolve overrides - resolve FloatOrPercentages to floats - resolve compatibility rules
179 lines
4.9 KiB
YAML
179 lines
4.9 KiB
YAML
#
|
|
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html
|
|
#
|
|
Language: Cpp
|
|
AccessModifierOffset: -4
|
|
AlignAfterOpenBracket: BlockIndent
|
|
AlignArrayOfStructures: None
|
|
AlignConsecutiveAssignments: Consecutive
|
|
AlignConsecutiveBitFields: None
|
|
AlignConsecutiveDeclarations: None
|
|
AlignConsecutiveMacros: None
|
|
AlignConsecutiveShortCaseStatements:
|
|
Enabled: false
|
|
AlignEscapedNewlines: DontAlign
|
|
AlignOperands: DontAlign
|
|
AlignTrailingComments:
|
|
Kind: Never
|
|
AllowAllArgumentsOnNextLine: false
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
AllowBreakBeforeNoexceptSpecifier: Never
|
|
AllowShortBlocksOnASingleLine: false
|
|
AllowShortCaseExpressionOnASingleLine: false
|
|
AllowShortCaseLabelsOnASingleLine: false
|
|
AllowShortCompoundRequirementOnASingleLine: true
|
|
AllowShortEnumsOnASingleLine: false
|
|
AllowShortFunctionsOnASingleLine: Empty
|
|
AllowShortIfStatementsOnASingleLine: Never
|
|
AllowShortLambdasOnASingleLine: All
|
|
AllowShortLoopsOnASingleLine: false
|
|
AllowShortNamespacesOnASingleLine: false
|
|
AlwaysBreakBeforeMultilineStrings: true
|
|
BinPackArguments: false
|
|
BinPackParameters: OnePerLine
|
|
BitFieldColonSpacing: After
|
|
BraceWrapping:
|
|
AfterCaseLabel: false
|
|
AfterClass: true
|
|
AfterControlStatement: MultiLine
|
|
AfterEnum: true
|
|
AfterFunction: true
|
|
AfterNamespace: false
|
|
AfterObjCDeclaration: false
|
|
AfterStruct: true
|
|
AfterUnion: true
|
|
AfterExternBlock: false
|
|
BeforeCatch: false
|
|
BeforeElse: false
|
|
BeforeLambdaBody: true
|
|
BeforeWhile: false
|
|
IndentBraces: false
|
|
SplitEmptyFunction: false
|
|
SplitEmptyRecord: false
|
|
SplitEmptyNamespace: false
|
|
BreakAdjacentStringLiterals: true
|
|
BreakAfterAttributes: Never
|
|
BreakAfterReturnType: Automatic
|
|
BreakArrays: false
|
|
BreakBeforeBinaryOperators: NonAssignment
|
|
BreakBeforeBraces: Custom
|
|
BreakBeforeConceptDeclarations: Always
|
|
BreakBeforeTernaryOperators: false
|
|
BreakBinaryOperations: RespectPrecedence
|
|
BreakConstructorInitializers: AfterColon
|
|
BreakFunctionDefinitionParameters: false
|
|
BreakInheritanceList: AfterColon
|
|
BreakStringLiterals: false
|
|
BreakTemplateDeclarations: Yes
|
|
ColumnLimit: 100
|
|
CommentPragmas: '^ IWYU pragma:'
|
|
CompactNamespaces: false
|
|
ConstructorInitializerIndentWidth: 4
|
|
ContinuationIndentWidth: 4
|
|
Cpp11BracedListStyle: true
|
|
DerivePointerAlignment: false
|
|
DisableFormat: false
|
|
EmptyLineAfterAccessModifier: Never
|
|
EmptyLineBeforeAccessModifier: LogicalBlock
|
|
ExperimentalAutoDetectBinPacking: false
|
|
FixNamespaceComments: true
|
|
ForEachMacros:
|
|
- forever
|
|
- foreach
|
|
- Q_FOREACH
|
|
- BOOST_FOREACH
|
|
IncludeBlocks: Regroup
|
|
IncludeCategories:
|
|
- Regex: '^<'
|
|
Priority: 1
|
|
- Regex: '.*'
|
|
Priority: 2
|
|
IncludeIsMainRegex: '(Test)?$'
|
|
IndentAccessModifiers: false
|
|
IndentCaseBlocks: false
|
|
IndentCaseLabels: false
|
|
IndentExportBlock: false
|
|
IndentExternBlock: Indent
|
|
IndentGotoLabels: false
|
|
IndentPPDirectives: None
|
|
IndentRequiresClause: true
|
|
IndentWidth: 4
|
|
IndentWrappedFunctionNames: false
|
|
InsertBraces: false
|
|
InsertNewlineAtEOF: true
|
|
IntegerLiteralSeparator:
|
|
Binary: 0
|
|
Decimal: 0
|
|
Hex: 0
|
|
KeepEmptyLines:
|
|
AtEndOfFile: false
|
|
AtStartOfBlock: false
|
|
AtStartOfFile: false
|
|
KeepFormFeed: false
|
|
LambdaBodyIndentation: Signature
|
|
LineEnding: LF
|
|
MacroBlockBegin: ''
|
|
MacroBlockEnd: ''
|
|
MainIncludeChar: Quote
|
|
MaxEmptyLinesToKeep: 1
|
|
NamespaceIndentation: None
|
|
ObjCBinPackProtocolList: Auto
|
|
ObjCBlockIndentWidth: 4
|
|
ObjCSpaceAfterProperty: false
|
|
ObjCSpaceBeforeProtocolList: true
|
|
PPIndentWidth: -1
|
|
PackConstructorInitializers: CurrentLine
|
|
PenaltyBreakAssignment: 2
|
|
PenaltyBreakBeforeFirstCallParameter: 19
|
|
PenaltyBreakBeforeMemberAccess: 150
|
|
PenaltyBreakComment: 300
|
|
PenaltyBreakFirstLessLess: 120
|
|
PenaltyBreakOpenParenthesis: 0
|
|
PenaltyBreakScopeResolution: 500
|
|
PenaltyBreakString: 1000
|
|
PenaltyBreakTemplateDeclaration: 10
|
|
PenaltyExcessCharacter: 1000000
|
|
PenaltyIndentedWhitespace: 400
|
|
PenaltyReturnTypeOnItsOwnLine: 200
|
|
PointerAlignment: Left
|
|
QualifierAlignment: Leave
|
|
ReferenceAlignment: Left
|
|
ReflowComments: IndentOnly
|
|
RemoveBracesLLVM: false
|
|
RemoveEmptyLinesInUnwrappedLines: true
|
|
RemoveParentheses: Leave
|
|
RemoveSemicolon: false
|
|
RequiresClausePosition: OwnLine
|
|
RequiresExpressionIndentation: OuterScope
|
|
SeparateDefinitionBlocks: Always
|
|
ShortNamespaceLines: 0
|
|
SkipMacroDefinitionBody: true
|
|
# Sadly, currently macros can depend on this. Hopefully we can get rid of it.
|
|
SortIncludes: false
|
|
SortUsingDeclarations: true
|
|
SpaceAfterCStyleCast: true
|
|
SpaceAfterLogicalNot: false
|
|
SpaceAfterTemplateKeyword: true
|
|
SpaceAroundPointerQualifiers: Default
|
|
SpaceBeforeAssignmentOperators: true
|
|
SpaceBeforeCaseColon: false
|
|
SpaceBeforeCpp11BracedList: false
|
|
SpaceBeforeCtorInitializerColon: true
|
|
SpaceBeforeInheritanceColon: true
|
|
SpaceBeforeJsonColon: false
|
|
SpaceBeforeParens: ControlStatements
|
|
SpaceBeforeRangeBasedForLoopColon: true
|
|
SpaceBeforeSquareBrackets: false
|
|
SpaceInEmptyBlock: false
|
|
SpaceInEmptyParentheses: false
|
|
SpacesBeforeTrailingComments: 1
|
|
SpacesInAngles: Never
|
|
SpacesInContainerLiterals: false
|
|
SpacesInLineCommentPrefix:
|
|
Minimum: 1
|
|
Maximum: 1
|
|
SpacesInParens: Never
|
|
SpacesInSquareBrackets: false
|
|
Standard: c++20
|
|
TabWidth: 4
|
|
UseTab: Never
|