mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled
Build / Publish YACReader10 Pre-release Builds (push) Has been cancelled
76 lines
2.1 KiB
YAML
76 lines
2.1 KiB
YAML
BasedOnStyle: WebKit
|
|
|
|
Standard: Cpp11
|
|
|
|
ColumnLimit: 0
|
|
|
|
# We want a space between the type and the star for pointer types.
|
|
DerivePointerAlignment: false
|
|
PointerAlignment: Right
|
|
|
|
# We use template< without space.
|
|
SpaceAfterTemplateKeyword: false
|
|
|
|
# We want to break before the operators, but not before a '='.
|
|
BreakBeforeBinaryOperators: false
|
|
|
|
# Braces are usually attached, but not after functions or class declarations.
|
|
BreakBeforeBraces: Custom
|
|
BraceWrapping:
|
|
AfterClass: true
|
|
AfterControlStatement: false
|
|
AfterEnum: false
|
|
AfterFunction: true
|
|
AfterNamespace: false
|
|
AfterObjCDeclaration: false
|
|
AfterStruct: false
|
|
AfterUnion: false
|
|
BeforeCatch: false
|
|
BeforeElse: false
|
|
IndentBraces: false
|
|
|
|
# When constructor initializers do not fit on one line, put them each on a new line.
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
|
# Indent initializers by 4 spaces
|
|
ConstructorInitializerIndentWidth: 4
|
|
|
|
# Indent width for line continuations.
|
|
ContinuationIndentWidth: 8
|
|
|
|
# No indentation for namespaces.
|
|
NamespaceIndentation: None
|
|
|
|
# Horizontally align arguments after an open bracket.
|
|
# The coding style does not specify the following, but this is what gives
|
|
# results closest to the existing code.
|
|
AlignAfterOpenBracket: true
|
|
BreakTemplateDeclarations: Yes
|
|
|
|
# Ideally we should also allow less short function in a single line, but
|
|
# clang-format does not handle that.
|
|
AllowShortFunctionsOnASingleLine: Inline
|
|
|
|
# Sort includes and regroup them into consistent blocks:
|
|
# 0. self include (the .h matching the .cpp, automatic)
|
|
# 1. project includes ""
|
|
# 2. Qt includes <Q...>
|
|
# 3. system includes <...>
|
|
SortIncludes: CaseSensitive
|
|
IncludeBlocks: Regroup
|
|
IncludeCategories:
|
|
- Regex: "^\""
|
|
Priority: 1
|
|
- Regex: "^<Q"
|
|
Priority: 2
|
|
- Regex: "^<"
|
|
Priority: 3
|
|
|
|
# macros for which the opening brace stays attached.
|
|
ForEachMacros: [ foreach, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE ]
|
|
|
|
# Break constructor initializers before the colon and after the commas.
|
|
BreakConstructorInitializers: BeforeColon
|
|
|
|
# Empty blocks should be {}
|
|
SpaceInEmptyBraces: Always
|