From 0eb6cb7faf3296dd3c26c3b11e3af86228167685 Mon Sep 17 00:00:00 2001 From: Angad Date: Tue, 12 Sep 2023 23:15:45 -0700 Subject: [PATCH] Cleanup PCH --- cmake/Plugin.h.in | 2 +- include/PCH.h | 181 +++++++++++++++++++++++++++++----------------- 2 files changed, 114 insertions(+), 69 deletions(-) diff --git a/cmake/Plugin.h.in b/cmake/Plugin.h.in index 0c64a54..4db8481 100644 --- a/cmake/Plugin.h.in +++ b/cmake/Plugin.h.in @@ -7,6 +7,6 @@ namespace Plugin static constexpr auto Name{ "PluginName"sv }; static constexpr auto Author{ "AuthorName"sv }; static constexpr auto Version{ - REL::Version{ @PROJECT_VERSION_MAJOR@, @PROJECT_VERSION_MINOR@, @PROJECT_VERSION_PATCH@, 0 } + REL::Version{@PROJECT_VERSION_MAJOR@, @PROJECT_VERSION_MINOR@, @PROJECT_VERSION_PATCH@, 0} }; } // namespace Plugin diff --git a/include/PCH.h b/include/PCH.h index d948952..9200308 100644 --- a/include/PCH.h +++ b/include/PCH.h @@ -1,97 +1,142 @@ #pragma once -#include +/* +++++++++++++++++++++++++ C++23 Standard Library +++++++++++++++++++++++++ */ + +// Concepts library +#include + +// Utilities library #include -#include -#include -#include -#include #include -#include -#include -#include -#include -#include -#include #include -#include -#include -#include -#include #include -#include -#include -#include #include #include #include #include -#include -#include #include -#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Dynamic memory management +#include +#include +#include +#include + +// Numeric limits +#include +#include +#include +#include +#include +#include + +// Error handling +#include +#include +#include +#include +#include +#include + +// Strings library +#include +#include +#include #include #include #include +#include +#include + +// Containers library +#include #include -#include -#include -#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Iterators library +#include + +// Ranges library +#include + +// Algorithms library +#include +#include + +// Numerics library +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Localization library +#include +#include + +// Input/output library +#include #include -#include -#include -#include #include #include #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include #include -#include -#include #include -#include -#include +#include #include -#include + +// Filesystem library +#include + +// Regular Expressions library +#include + +// Atomic Operations library +#include + +// Thread support library +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include + +/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ // clang-format off #include @@ -108,6 +153,8 @@ #include #include +#define SFSEPluginVersion extern "C" __declspec(dllexport) constinit SFSE::PluginVersionData SFSEPlugin_Version + using namespace std::literals; using namespace REL::literals; @@ -159,5 +206,3 @@ namespace stl T::func = vtbl.write_vfunc(T::idx, T::Thunk); } } // namespace stl - -#define SFSEPluginVersion extern "C" __declspec(dllexport) constinit SFSE::PluginVersionData SFSEPlugin_Version