workstation/roles/home-cli/files/clang-format

162 lines
4.7 KiB
Text
Raw Normal View History

2023-05-26 21:58:55 +00:00
# clang-format 14
2021-09-25 14:20:50 +00:00
---
2023-05-26 21:58:55 +00:00
BasedOnStyle: LLVM
2023-05-19 07:02:48 +00:00
#BreakAfterAttributes: Always # clang-format 16
#IndentRequiresClause: false # clang-format 15
2023-05-26 21:58:55 +00:00
#InsertNewlineAtEOF: true # clang-format 16
#InsertBraces: true # clang-format 15
#RemoveParentheses: MultipleParentheses # clang-format 17
#RequiresClausePosition: OwnLine # clang-format 15
#RequiresExpressionIndentation: OuterScope # clang-format 16
#SpacesInParens: Never # clang-format 17
2023-05-26 21:58:55 +00:00
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AlignArrayOfStructures: None
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: None
AlignConsecutiveDeclarations: None
AlignConsecutiveMacros: None
AlignEscapedNewlines: DontAlign
AlignOperands: DontAlign
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
2024-09-17 21:13:47 +00:00
AllowShortBlocksOnASingleLine: Empty
2023-05-26 21:58:55 +00:00
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
2024-09-12 19:58:03 +00:00
AllowShortLambdasOnASingleLine: Inline
2023-05-26 21:58:55 +00:00
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true
BinPackParameters: true
BitFieldColonSpacing: Both
BreakAfterJavaFieldAnnotations: false
BreakBeforeBinaryOperators: None
2024-09-12 19:24:11 +00:00
BreakBeforeBraces: Custom
2023-05-26 21:58:55 +00:00
BreakBeforeConceptDeclarations: true
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: false
BreakConstructorInitializers: BeforeColon
BreakConstructorInitializersBeforeComma: false
BreakInheritanceList: BeforeColon
BreakStringLiterals: true
ColumnLimit: 100
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
2023-05-18 22:13:03 +00:00
ContinuationIndentWidth: 2
2023-05-26 21:58:55 +00:00
Cpp11BracedListStyle: true
DeriveLineEnding: true
DerivePointerAlignment: true
DisableFormat: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
2023-06-02 16:20:18 +00:00
IncludeBlocks: Regroup
2024-09-17 21:22:17 +00:00
IncludeIsMainRegex: ""
IncludeIsMainSourceRegex: ""
2023-05-26 21:58:55 +00:00
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseLabels: false
IndentExternBlock: AfterExternBlock
IndentGotoLabels: true
IndentPPDirectives: None
IndentRequires: false
IndentWidth: 4
IndentWrappedFunctionNames: false
InsertTrailingCommas: None
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
LambdaBodyIndentation: Signature
2024-09-17 21:22:17 +00:00
MacroBlockBegin: ""
MacroBlockEnd: ""
2023-05-26 21:58:55 +00:00
MaxEmptyLinesToKeep: 1
2024-09-12 20:15:28 +00:00
NamespaceIndentation: None
2023-05-26 21:58:55 +00:00
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PPIndentWidth: -1
PackConstructorInitializers: BinPack
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakOpenParenthesis: 0
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyIndentedWhitespace: 0
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Left
QualifierAlignment: Leave
ReferenceAlignment: Pointer
ReflowComments: true
RemoveBracesLLVM: false
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 1
SortIncludes: CaseSensitive
SortJavaStaticImport: Before
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceAroundPointerQualifiers: Default
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
2023-05-26 22:01:29 +00:00
SpacesBeforeTrailingComments: 2
2023-05-26 21:58:55 +00:00
SpacesInAngles: Never
SpacesInCStyleCastParentheses: false
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Latest
TabWidth: 8
UseCRLF: false
UseTab: Never
2024-09-12 19:24:11 +00:00
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: true
2024-09-17 21:13:47 +00:00
AfterNamespace: false
2024-09-12 19:24:11 +00:00
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
2023-05-26 21:58:55 +00:00
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterForeachMacros: true
AfterFunctionDeclarationName: false
AfterFunctionDefinitionName: false
AfterIfMacros: true
AfterOverloadedOperator: false
BeforeNonEmptyParentheses: false