diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-02-28 10:51:06 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-02-28 18:04:22 +0000 |
commit | 099f3f46ca9ec1362f211278df4b3e4949b0a339 (patch) | |
tree | 6580c38554168eabcaf2defb82d200bf4c841c1d /sources/shiboken2/ApiExtractor/typesystem.h | |
parent | da7b579c1f0e40d5a895cc2b3a6cbf4ed88de890 (diff) |
shiboken: Add allow-thread attribute to type system and class entries
In the typesystem parser, add the allow-thread attribute to root and
complex type entry.
Rewrite the handling of allow-thread (cached) in AbstractMetaFunction
similar to the exception handling (store the modification in
AbstractMetaFunction and go down the class hierarchy if it is
unspecified).
Change-Id: I00e6e2ab25208fda63ec20522814cbfccbb8c42d
Fixes: PYSIDE-931
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/typesystem.h')
-rw-r--r-- | sources/shiboken2/ApiExtractor/typesystem.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/typesystem.h b/sources/shiboken2/ApiExtractor/typesystem.h index b0144923a..36a75c599 100644 --- a/sources/shiboken2/ApiExtractor/typesystem.h +++ b/sources/shiboken2/ApiExtractor/typesystem.h @@ -1395,6 +1395,9 @@ public: TypeSystem::ExceptionHandling exceptionHandling() const { return m_exceptionHandling; } void setExceptionHandling(TypeSystem::ExceptionHandling e) { m_exceptionHandling = e; } + TypeSystem::AllowThread allowThread() const { return m_allowThread; } + void setAllowThread(TypeSystem::AllowThread allowThread) { m_allowThread = allowThread; } + QString defaultConstructor() const; void setDefaultConstructor(const QString& defaultConstructor); bool hasDefaultConstructor() const; @@ -1433,6 +1436,7 @@ private: const ComplexTypeEntry* m_baseContainerType = nullptr; // For class functions TypeSystem::ExceptionHandling m_exceptionHandling = TypeSystem::ExceptionHandling::Unspecified; + TypeSystem::AllowThread m_allowThread = TypeSystem::AllowThread::Unspecified; }; class TypedefEntry : public ComplexTypeEntry |