Format includes using clang-format
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

This commit is contained in:
luisangelsm
2026-03-13 18:21:38 +01:00
parent f0943995c6
commit 3709b6e737
276 changed files with 1047 additions and 1081 deletions

View File

@ -50,11 +50,20 @@ BreakTemplateDeclarations: Yes
# clang-format does not handle that.
AllowShortFunctionsOnASingleLine: Inline
# The coding style specifies some include order categories, but also tells to
# separate categories with an empty line. It does not specify the order within
# the categories. Since the SortInclude feature of clang-format does not
# re-order includes separated by empty lines, the feature is not used.
SortIncludes: false
# 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 ]