mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 19:08:59 +00:00
f20fa61eb4
Configure emacs and clang-format 15 to the coding style I am choosing for qpdf.
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
# -*- yaml -*-
|
|
# This configuration works with clang-format-15.
|
|
# See https://clang.llvm.org/docs/ClangFormatStyleOptions.html
|
|
---
|
|
Language: Cpp
|
|
BasedOnStyle: LLVM
|
|
AlignAfterOpenBracket: AlwaysBreak
|
|
AlignEscapedNewlines: DontAlign
|
|
AlignOperands: DontAlign
|
|
AllowShortFunctionsOnASingleLine: None
|
|
AlwaysBreakAfterReturnType: AllDefinitions
|
|
AlwaysBreakTemplateDeclarations: Yes
|
|
AttributeMacros:
|
|
- QPDF_DLL
|
|
- QPDF_DLL_CLASS
|
|
BinPackArguments: false
|
|
BinPackParameters: false
|
|
BraceWrapping:
|
|
AfterClass: true
|
|
AfterFunction: true
|
|
AfterNamespace: true
|
|
AfterStruct: true
|
|
AfterUnion: true
|
|
BreakBeforeBraces: Custom
|
|
BreakConstructorInitializers: AfterColon
|
|
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
|
|
SpaceBeforeInheritanceColon: false
|