diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-12-14 15:27:32 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-12-14 15:45:21 +0200 |
commit | d970b1e28a11223b6dd1cd4a32918cfa9271e283 (patch) | |
tree | f2978d0d0f4f31cc3b6e5d65aec35173ca9eda74 /src/webengine/webprofilemanager.h | |
parent | Update PKGBUILD to build with cmake (diff) | |
download | smolbote-d970b1e28a11223b6dd1cd4a32918cfa9271e283.tar.xz |
Code cleanup
Diffstat (limited to 'src/webengine/webprofilemanager.h')
-rw-r--r-- | src/webengine/webprofilemanager.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/webengine/webprofilemanager.h b/src/webengine/webprofilemanager.h index a356506..e5df6d5 100644 --- a/src/webengine/webprofilemanager.h +++ b/src/webengine/webprofilemanager.h @@ -9,7 +9,6 @@ #ifndef SMOLBOTE_WEBPROFILEMANAGER_H #define SMOLBOTE_WEBPROFILEMANAGER_H -#include "singleton.hpp" #include "webprofile.h" #include <QDir> #include <QFile> @@ -18,6 +17,20 @@ #include <QMenu> #include <functional> +#if defined(__clang__) +#define consumable(X) [[clang::consumable(X)]] +#define return_typestate(X) [[clang::return_typestate(X)]] +#define set_typestate(X) [[clang::set_typestate(X)]] +#define callable_when(X) [[clang::callable_when(X)]] +#define param_typestate(X) [[clang::param_typestate(X)]] +#else +#define consumable(X) +#define return_typestate(X) +#define set_typestate(X) +#define callable_when(X) +#define param_typestate(X) +#endif + void profileMenu(QMenu *menu, const std::function<void(WebProfile *)> &callback, WebProfile *current = nullptr, bool checkable = false); template <bool use_global = true> |