diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-01-30 13:25:17 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-01-31 07:12:14 +0000 |
commit | d2ea4919081b5b61aa77029fb47e2cdf8e94adca (patch) | |
tree | 7dc16c12be158eb73ab2da1b59b64ea987eedcec /sources/shiboken2/ApiExtractor/abstractmetabuilder.h | |
parent | 53a794cb20d00f1b84e601440c32d22e4397d27b (diff) |
shiboken: Add option to skip deprecated functions
Pass the "deprecated" annotation from Clang into the meta language and
reject functions based on it when the the command line option
--skip-deprecated is set.
By default, have Python output a deprecation warning when a deprecated
function is called (which is visible when passing -Wd).
Task-number: PYSIDE-487
Change-Id: Ic28d82963fde11f258b2559b562d3f24017fe98d
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/abstractmetabuilder.h')
-rw-r--r-- | sources/shiboken2/ApiExtractor/abstractmetabuilder.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/abstractmetabuilder.h b/sources/shiboken2/ApiExtractor/abstractmetabuilder.h index 01806f6b4..7e5c1fc79 100644 --- a/sources/shiboken2/ApiExtractor/abstractmetabuilder.h +++ b/sources/shiboken2/ApiExtractor/abstractmetabuilder.h @@ -53,6 +53,7 @@ public: UnmatchedArgumentType, UnmatchedReturnType, ApiIncompatible, + Deprecated, NoReason }; @@ -87,6 +88,8 @@ public: */ void setGlobalHeader(const QString& globalHeader); + void setSkipDeprecated(bool value); + static AbstractMetaType *translateType(const TypeInfo &_typei, AbstractMetaClass *currentClass = nullptr, bool resolveType = true, |