Update magic_enum from v0.9.3 to v0.9.5 (#4992)

* Fix include path for magic enum
* Update .clang-format to ensure magic enum is caught as a third party library
This commit is contained in:
pajlada 2023-12-01 15:03:04 +01:00 committed by GitHub
parent 6d02bb7304
commit e327ed4166
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 28 additions and 39 deletions

View file

@ -61,6 +61,7 @@
- Dev: Add a compile-time flag `CHATTERINO_UPDATER` which can be turned off to disable update checks. (#4854) - Dev: Add a compile-time flag `CHATTERINO_UPDATER` which can be turned off to disable update checks. (#4854)
- Dev: Add a compile-time flag `USE_SYSTEM_MINIAUDIO` which can be turned on to use the system miniaudio. (#4867) - Dev: Add a compile-time flag `USE_SYSTEM_MINIAUDIO` which can be turned on to use the system miniaudio. (#4867)
- Dev: Update vcpkg to use Qt6. (#4872) - Dev: Update vcpkg to use Qt6. (#4872)
- Dev: Update `magic_enum` to v0.9.5. (#4992)
- Dev: Replace `boost::optional` with `std::optional`. (#4877) - Dev: Replace `boost::optional` with `std::optional`. (#4877)
- Dev: Improve performance of selecting text. (#4889, #4911) - Dev: Improve performance of selecting text. (#4889, #4911)
- Dev: Removed direct dependency on Qt 5 compatibility module. (#4906) - Dev: Removed direct dependency on Qt 5 compatibility module. (#4906)

View file

@ -32,9 +32,6 @@ IncludeCategories:
# Project includes # Project includes
- Regex: '^"[a-zA-Z\._-]+(/[a-zA-Z0-9\._-]+)*"$' - Regex: '^"[a-zA-Z\._-]+(/[a-zA-Z0-9\._-]+)*"$'
Priority: 1 Priority: 1
# Third party library includes
- Regex: '<[[:alnum:].]+/[a-zA-Z0-9\._\/-]+>'
Priority: 3
# Qt includes # Qt includes
- Regex: '^<Q[a-zA-Z0-9\._\/-]+>$' - Regex: '^<Q[a-zA-Z0-9\._\/-]+>$'
Priority: 3 Priority: 3
@ -42,12 +39,12 @@ IncludeCategories:
# LibCommuni includes # LibCommuni includes
- Regex: "^<Irc[a-zA-Z]+>$" - Regex: "^<Irc[a-zA-Z]+>$"
Priority: 3 Priority: 3
# Misc libraries
- Regex: '^<[a-zA-Z_0-9]+\.h(pp)?>$'
Priority: 3
# Standard library includes # Standard library includes
- Regex: "^<[a-zA-Z_]+>$" - Regex: "^<[a-zA-Z_]+>$"
Priority: 4 Priority: 4
# Third party library includes
- Regex: "^<([a-zA-Z_0-9-]+/)*[a-zA-Z_0-9-]+.h(pp)?>$"
Priority: 3
NamespaceIndentation: Inner NamespaceIndentation: Inner
PointerBindsToType: false PointerBindsToType: false
SpacesBeforeTrailingComments: 2 SpacesBeforeTrailingComments: 2

View file

@ -1,6 +1,6 @@
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
find_path(MagicEnum_INCLUDE_DIR magic_enum.hpp HINTS ${CMAKE_SOURCE_DIR}/lib/magic_enum/include) find_path(MagicEnum_INCLUDE_DIR magic_enum/magic_enum.hpp HINTS ${CMAKE_SOURCE_DIR}/lib/magic_enum/include)
find_package_handle_standard_args(MagicEnum DEFAULT_MSG MagicEnum_INCLUDE_DIR) find_package_handle_standard_args(MagicEnum DEFAULT_MSG MagicEnum_INCLUDE_DIR)

@ -1 +1 @@
Subproject commit e1a68e9dd3d2e9180b04c8aeacd4975db745e6b8 Subproject commit e55b9b54d5cf61f8e117cafb17846d7d742dd3b4

View file

@ -32,9 +32,6 @@ IncludeCategories:
# Project includes # Project includes
- Regex: '^"[a-zA-Z\._-]+(/[a-zA-Z0-9\._-]+)*"$' - Regex: '^"[a-zA-Z\._-]+(/[a-zA-Z0-9\._-]+)*"$'
Priority: 1 Priority: 1
# Third party library includes
- Regex: '<[[:alnum:].]+/[a-zA-Z0-9\._\/-]+>'
Priority: 3
# Qt includes # Qt includes
- Regex: '^<Q[a-zA-Z0-9\._\/-]+>$' - Regex: '^<Q[a-zA-Z0-9\._\/-]+>$'
Priority: 3 Priority: 3
@ -42,12 +39,12 @@ IncludeCategories:
# LibCommuni includes # LibCommuni includes
- Regex: "^<Irc[a-zA-Z]+>$" - Regex: "^<Irc[a-zA-Z]+>$"
Priority: 3 Priority: 3
# Misc libraries
- Regex: '^<[a-zA-Z_0-9]+\.h(pp)?>$'
Priority: 3
# Standard library includes # Standard library includes
- Regex: "^<[a-zA-Z_]+>$" - Regex: "^<[a-zA-Z_]+>$"
Priority: 4 Priority: 4
# Third party library includes
- Regex: "^<([a-zA-Z_0-9-]+/)*[a-zA-Z_0-9-]+.h(pp)?>$"
Priority: 3
NamespaceIndentation: Inner NamespaceIndentation: Inner
PointerBindsToType: false PointerBindsToType: false
SpacesBeforeTrailingComments: 2 SpacesBeforeTrailingComments: 2

View file

@ -32,9 +32,6 @@ IncludeCategories:
# Project includes # Project includes
- Regex: '^"[a-zA-Z\._-]+(/[a-zA-Z0-9\._-]+)*"$' - Regex: '^"[a-zA-Z\._-]+(/[a-zA-Z0-9\._-]+)*"$'
Priority: 1 Priority: 1
# Third party library includes
- Regex: '<[[:alnum:].]+/[a-zA-Z0-9\._\/-]+>'
Priority: 3
# Qt includes # Qt includes
- Regex: '^<Q[a-zA-Z0-9\._\/-]+>$' - Regex: '^<Q[a-zA-Z0-9\._\/-]+>$'
Priority: 3 Priority: 3
@ -42,12 +39,12 @@ IncludeCategories:
# LibCommuni includes # LibCommuni includes
- Regex: "^<Irc[a-zA-Z]+>$" - Regex: "^<Irc[a-zA-Z]+>$"
Priority: 3 Priority: 3
# Misc libraries
- Regex: '^<[a-zA-Z_0-9]+\.h(pp)?>$'
Priority: 3
# Standard library includes # Standard library includes
- Regex: "^<[a-zA-Z_]+>$" - Regex: "^<[a-zA-Z_]+>$"
Priority: 4 Priority: 4
# Third party library includes
- Regex: "^<([a-zA-Z_0-9-]+/)*[a-zA-Z_0-9-]+.h(pp)?>$"
Priority: 3
NamespaceIndentation: Inner NamespaceIndentation: Inner
PointerBindsToType: false PointerBindsToType: false
SpacesBeforeTrailingComments: 2 SpacesBeforeTrailingComments: 2

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <magic_enum.hpp> #include <magic_enum/magic_enum.hpp>
#include <pajlada/settings.hpp> #include <pajlada/settings.hpp>
#include <QString> #include <QString>

View file

@ -4,7 +4,7 @@
# include <lua.h> # include <lua.h>
# include <lualib.h> # include <lualib.h>
# include <magic_enum.hpp> # include <magic_enum/magic_enum.hpp>
# include <QList> # include <QList>
# include <string> # include <string>

View file

@ -4,7 +4,7 @@
# include "controllers/commands/CommandController.hpp" # include "controllers/commands/CommandController.hpp"
# include <lua.h> # include <lua.h>
# include <magic_enum.hpp> # include <magic_enum/magic_enum.hpp>
# include <QJsonArray> # include <QJsonArray>
# include <QJsonObject> # include <QJsonObject>

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <magic_enum.hpp> #include <magic_enum/magic_enum.hpp>
namespace chatterino::seventv { namespace chatterino::seventv {

View file

@ -2,7 +2,7 @@
#include "providers/seventv/eventapi/Subscription.hpp" #include "providers/seventv/eventapi/Subscription.hpp"
#include <magic_enum.hpp> #include <magic_enum/magic_enum.hpp>
#include <QJsonDocument> #include <QJsonDocument>
#include <QJsonObject> #include <QJsonObject>
#include <QString> #include <QString>

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <magic_enum.hpp> #include <magic_enum/magic_enum.hpp>
#include <QByteArray> #include <QByteArray>
#include <QHash> #include <QHash>
#include <QJsonObject> #include <QJsonObject>

View file

@ -6,7 +6,7 @@
#include "common/QLogging.hpp" #include "common/QLogging.hpp"
#include "util/CancellationToken.hpp" #include "util/CancellationToken.hpp"
#include <magic_enum.hpp> #include <magic_enum/magic_enum.hpp>
#include <QJsonDocument> #include <QJsonDocument>
namespace { namespace {

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <magic_enum.hpp> #include <magic_enum/magic_enum.hpp>
#include <QColor> #include <QColor>
#include <QJsonObject> #include <QJsonObject>
#include <QString> #include <QString>

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <magic_enum.hpp> #include <magic_enum/magic_enum.hpp>
#include <QJsonDocument> #include <QJsonDocument>
#include <QJsonObject> #include <QJsonObject>
#include <QString> #include <QString>

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <magic_enum.hpp> #include <magic_enum/magic_enum.hpp>
#include <QJsonObject> #include <QJsonObject>
#include <QString> #include <QString>

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <magic_enum.hpp> #include <magic_enum/magic_enum.hpp>
#include <QJsonObject> #include <QJsonObject>
#include <QString> #include <QString>

View file

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <magic_enum.hpp> #include <magic_enum/magic_enum.hpp>
#include <QColor> #include <QColor>
#include <QJsonObject> #include <QJsonObject>
#include <QString> #include <QString>

View file

@ -21,7 +21,7 @@
#include "widgets/settingspages/GeneralPageView.hpp" #include "widgets/settingspages/GeneralPageView.hpp"
#include "widgets/splits/SplitInput.hpp" #include "widgets/splits/SplitInput.hpp"
#include <magic_enum.hpp> #include <magic_enum/magic_enum.hpp>
#include <QDesktopServices> #include <QDesktopServices>
#include <QFileDialog> #include <QFileDialog>
#include <QFontDialog> #include <QFontDialog>

View file

@ -32,9 +32,6 @@ IncludeCategories:
# Project includes # Project includes
- Regex: '^"[a-zA-Z\._-]+(/[a-zA-Z0-9\._-]+)*"$' - Regex: '^"[a-zA-Z\._-]+(/[a-zA-Z0-9\._-]+)*"$'
Priority: 1 Priority: 1
# Third party library includes
- Regex: '<[[:alnum:].]+/[a-zA-Z0-9\._\/-]+>'
Priority: 3
# Qt includes # Qt includes
- Regex: '^<Q[a-zA-Z0-9\._\/-]+>$' - Regex: '^<Q[a-zA-Z0-9\._\/-]+>$'
Priority: 3 Priority: 3
@ -42,12 +39,12 @@ IncludeCategories:
# LibCommuni includes # LibCommuni includes
- Regex: "^<Irc[a-zA-Z]+>$" - Regex: "^<Irc[a-zA-Z]+>$"
Priority: 3 Priority: 3
# Misc libraries
- Regex: '^<[a-zA-Z_0-9]+\.h(pp)?>$'
Priority: 3
# Standard library includes # Standard library includes
- Regex: "^<[a-zA-Z_]+>$" - Regex: "^<[a-zA-Z_]+>$"
Priority: 4 Priority: 4
# Third party library includes
- Regex: "^<([a-zA-Z_0-9-]+/)*[a-zA-Z_0-9-]+.h(pp)?>$"
Priority: 3
NamespaceIndentation: Inner NamespaceIndentation: Inner
PointerBindsToType: false PointerBindsToType: false
SpacesBeforeTrailingComments: 2 SpacesBeforeTrailingComments: 2