2020-08-22 15:37:03 +02:00
|
|
|
Language: Cpp
|
|
|
|
|
|
|
|
AccessModifierOffset: -4
|
|
|
|
AlignEscapedNewlinesLeft: true
|
|
|
|
AllowShortFunctionsOnASingleLine: false
|
|
|
|
AllowShortIfStatementsOnASingleLine: false
|
2020-12-26 12:42:39 +01:00
|
|
|
AllowShortLambdasOnASingleLine: Empty
|
2020-08-22 15:37:03 +02:00
|
|
|
AllowShortLoopsOnASingleLine: false
|
|
|
|
AlwaysBreakAfterDefinitionReturnType: false
|
|
|
|
AlwaysBreakBeforeMultilineStrings: false
|
|
|
|
BasedOnStyle: Google
|
2023-01-15 17:27:41 +01:00
|
|
|
BraceWrapping:
|
|
|
|
AfterClass: "true"
|
|
|
|
AfterControlStatement: "true"
|
|
|
|
AfterFunction: "true"
|
|
|
|
AfterNamespace: "false"
|
|
|
|
BeforeCatch: "true"
|
|
|
|
BeforeElse: "true"
|
2020-08-22 15:37:03 +02:00
|
|
|
BreakBeforeBraces: Custom
|
|
|
|
BreakConstructorInitializersBeforeComma: true
|
|
|
|
ColumnLimit: 80
|
|
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
|
|
|
DerivePointerBinding: false
|
|
|
|
FixNamespaceComments: true
|
|
|
|
IndentCaseLabels: true
|
|
|
|
IndentWidth: 4
|
|
|
|
IndentWrappedFunctionNames: true
|
|
|
|
IndentPPDirectives: AfterHash
|
Sort and force grouping of includes (#4172)
This change enforces strict include grouping using IncludeCategories
In addition to adding this to the .clang-format file and applying it in the tests/src and src directories, I also did the following small changes:
In ChatterSet.hpp, I changed lrucache to a <>include
In Irc2.hpp, I change common/SignalVector.hpp to a "project-include"
In AttachedWindow.cpp, NativeMessaging.cpp, WindowsHelper.hpp, BaseWindow.cpp, and StreamerMode.cpp, I disabled clang-format for the windows-includes
In WindowDescriptors.hpp, I added the missing vector include. It was previously not needed because the include was handled by another file that was previously included first.
clang-format minimum version has been bumped, so Ubuntu version used in the check-formatting job has been bumped to 22.04 (which is the latest LTS)
2022-11-27 19:32:53 +01:00
|
|
|
SortIncludes: CaseInsensitive
|
|
|
|
IncludeBlocks: Regroup
|
|
|
|
IncludeCategories:
|
2023-01-15 17:27:41 +01:00
|
|
|
# Project includes
|
|
|
|
- Regex: '^"[a-zA-Z\._-]+(/[a-zA-Z0-9\._-]+)*"$'
|
Sort and force grouping of includes (#4172)
This change enforces strict include grouping using IncludeCategories
In addition to adding this to the .clang-format file and applying it in the tests/src and src directories, I also did the following small changes:
In ChatterSet.hpp, I changed lrucache to a <>include
In Irc2.hpp, I change common/SignalVector.hpp to a "project-include"
In AttachedWindow.cpp, NativeMessaging.cpp, WindowsHelper.hpp, BaseWindow.cpp, and StreamerMode.cpp, I disabled clang-format for the windows-includes
In WindowDescriptors.hpp, I added the missing vector include. It was previously not needed because the include was handled by another file that was previously included first.
clang-format minimum version has been bumped, so Ubuntu version used in the check-formatting job has been bumped to 22.04 (which is the latest LTS)
2022-11-27 19:32:53 +01:00
|
|
|
Priority: 1
|
2023-01-15 17:27:41 +01:00
|
|
|
# Qt includes
|
|
|
|
- Regex: '^<Q[a-zA-Z0-9\._\/-]+>$'
|
Sort and force grouping of includes (#4172)
This change enforces strict include grouping using IncludeCategories
In addition to adding this to the .clang-format file and applying it in the tests/src and src directories, I also did the following small changes:
In ChatterSet.hpp, I changed lrucache to a <>include
In Irc2.hpp, I change common/SignalVector.hpp to a "project-include"
In AttachedWindow.cpp, NativeMessaging.cpp, WindowsHelper.hpp, BaseWindow.cpp, and StreamerMode.cpp, I disabled clang-format for the windows-includes
In WindowDescriptors.hpp, I added the missing vector include. It was previously not needed because the include was handled by another file that was previously included first.
clang-format minimum version has been bumped, so Ubuntu version used in the check-formatting job has been bumped to 22.04 (which is the latest LTS)
2022-11-27 19:32:53 +01:00
|
|
|
Priority: 3
|
|
|
|
CaseSensitive: true
|
2023-01-15 17:27:41 +01:00
|
|
|
# LibCommuni includes
|
|
|
|
- Regex: "^<Irc[a-zA-Z]+>$"
|
Sort and force grouping of includes (#4172)
This change enforces strict include grouping using IncludeCategories
In addition to adding this to the .clang-format file and applying it in the tests/src and src directories, I also did the following small changes:
In ChatterSet.hpp, I changed lrucache to a <>include
In Irc2.hpp, I change common/SignalVector.hpp to a "project-include"
In AttachedWindow.cpp, NativeMessaging.cpp, WindowsHelper.hpp, BaseWindow.cpp, and StreamerMode.cpp, I disabled clang-format for the windows-includes
In WindowDescriptors.hpp, I added the missing vector include. It was previously not needed because the include was handled by another file that was previously included first.
clang-format minimum version has been bumped, so Ubuntu version used in the check-formatting job has been bumped to 22.04 (which is the latest LTS)
2022-11-27 19:32:53 +01:00
|
|
|
Priority: 3
|
2023-01-15 17:27:41 +01:00
|
|
|
# Standard library includes
|
|
|
|
- Regex: "^<[a-zA-Z_]+>$"
|
Sort and force grouping of includes (#4172)
This change enforces strict include grouping using IncludeCategories
In addition to adding this to the .clang-format file and applying it in the tests/src and src directories, I also did the following small changes:
In ChatterSet.hpp, I changed lrucache to a <>include
In Irc2.hpp, I change common/SignalVector.hpp to a "project-include"
In AttachedWindow.cpp, NativeMessaging.cpp, WindowsHelper.hpp, BaseWindow.cpp, and StreamerMode.cpp, I disabled clang-format for the windows-includes
In WindowDescriptors.hpp, I added the missing vector include. It was previously not needed because the include was handled by another file that was previously included first.
clang-format minimum version has been bumped, so Ubuntu version used in the check-formatting job has been bumped to 22.04 (which is the latest LTS)
2022-11-27 19:32:53 +01:00
|
|
|
Priority: 4
|
2023-12-01 15:03:04 +01:00
|
|
|
# Third party library includes
|
|
|
|
- Regex: "^<([a-zA-Z_0-9-]+/)*[a-zA-Z_0-9-]+.h(pp)?>$"
|
|
|
|
Priority: 3
|
2020-08-22 15:37:03 +02:00
|
|
|
NamespaceIndentation: Inner
|
|
|
|
PointerBindsToType: false
|
|
|
|
SpacesBeforeTrailingComments: 2
|
|
|
|
Standard: Auto
|
|
|
|
ReflowComments: false
|