diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-10-28 08:28:11 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-11-03 08:58:01 +0100 |
commit | 3597752f58a237dfb8fec897822bb78e46905955 (patch) | |
tree | 0174d1099dedbbc31fc77129578d85cb7cf67b88 /sources/shiboken6/ApiExtractor/abstractmetalang.h | |
parent | 1a63e46e7e7bdd4d12eada16c028743fb88a9a12 (diff) |
shiboken6: Add --lean-header option
Add an option that causes shiboken to generate forward
declarations instead of includes where possible into the
module header. This works since SbkType<> template
specializations work with forward declarations. Includes are
only required for certain classes (with enums, inner classes).
[ChangeLog][shiboken6] An option --lean-header to generate
forward declarations instead of includes into the module
header has been added. This considerably reduces the
dependencies but may require additional includes to be
specified for injected code.
Pick-to: 6.4
Fixes: PYSIDE-2099
Change-Id: I01f639e4ccce5ca25016dc2d52562abcc489a5ab
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/abstractmetalang.h')
-rw-r--r-- | sources/shiboken6/ApiExtractor/abstractmetalang.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/abstractmetalang.h b/sources/shiboken6/ApiExtractor/abstractmetalang.h index 53266778f..1c35c872e 100644 --- a/sources/shiboken6/ApiExtractor/abstractmetalang.h +++ b/sources/shiboken6/ApiExtractor/abstractmetalang.h @@ -217,6 +217,7 @@ public: bool isNamespace() const; bool isInvisibleNamespace() const; + bool isInlineNamespace() const; bool isQObject() const { return inheritsFrom(u"QObject"_qs); } bool isQtNamespace() const; |