2022-04-02 21:13:36 +00:00
|
|
|
# -*- yaml -*-
|
2023-06-17 15:45:06 +00:00
|
|
|
# This configuration requires at least clang-format 15.
|
|
|
|
# See ./format-code for comments about the minimum version.
|
2022-04-02 21:13:36 +00:00
|
|
|
# See https://clang.llvm.org/docs/ClangFormatStyleOptions.html
|
|
|
|
---
|
|
|
|
Language: Cpp
|
|
|
|
BasedOnStyle: LLVM
|
|
|
|
AlignAfterOpenBracket: AlwaysBreak
|
|
|
|
AlignEscapedNewlines: DontAlign
|
|
|
|
AlignOperands: DontAlign
|
|
|
|
AllowShortFunctionsOnASingleLine: None
|
|
|
|
AlwaysBreakAfterReturnType: AllDefinitions
|
|
|
|
AlwaysBreakTemplateDeclarations: Yes
|
|
|
|
BinPackArguments: false
|
|
|
|
BinPackParameters: false
|
|
|
|
BraceWrapping:
|
|
|
|
AfterClass: true
|
|
|
|
AfterFunction: true
|
|
|
|
AfterNamespace: true
|
|
|
|
AfterStruct: true
|
|
|
|
AfterUnion: true
|
|
|
|
BreakBeforeBraces: Custom
|
|
|
|
BreakConstructorInitializers: AfterColon
|
2023-05-21 17:34:20 +00:00
|
|
|
ColumnLimit: 100
|
2022-04-02 21:13:36 +00:00
|
|
|
DeriveLineEnding: false
|
|
|
|
PackConstructorInitializers: Never
|
|
|
|
IncludeCategories:
|
|
|
|
- Regex: '^["<](qpdf)/'
|
|
|
|
Priority: 1
|
|
|
|
SortPriority: 0
|
|
|
|
CaseSensitive: false
|
|
|
|
- Regex: '.*'
|
|
|
|
Priority: 2
|
|
|
|
SortPriority: 0
|
|
|
|
CaseSensitive: false
|
|
|
|
- Regex: '.*'
|
|
|
|
Priority: 1
|
|
|
|
SortPriority: 0
|
|
|
|
CaseSensitive: false
|
|
|
|
IndentCaseBlocks: true
|
|
|
|
IndentExternBlock: Indent
|
|
|
|
IndentPPDirectives: AfterHash
|
|
|
|
IndentWidth: 4
|
|
|
|
InsertTrailingCommas: Wrapped
|
|
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
|
|
NamespaceIndentation: All
|
|
|
|
PointerAlignment: Left
|
|
|
|
PPIndentWidth: 1
|
2022-04-30 13:43:07 +00:00
|
|
|
SpaceBeforeCaseColon: false
|
|
|
|
SpaceBeforeCtorInitializerColon: true
|
2022-04-02 21:13:36 +00:00
|
|
|
SpaceBeforeInheritanceColon: false
|
2022-04-30 13:43:07 +00:00
|
|
|
SpaceBeforeRangeBasedForLoopColon: false
|