aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/typesystem.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-04-04 11:29:58 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-04-04 14:42:20 +0000
commit009c7413952c01c7ba4722aa73c968e07dc17e04 (patch)
treeb172946d8d7011c3a95827d6c3f0f27b217e1b12 /sources/shiboken2/ApiExtractor/typesystem.h
parent7de80955ccb5383d07183c119b834d12cecedd0c (diff)
shiboken: Allow for include paths with relative directories
Resolve the absolute file paths of the code model items against the include paths of shiboken to reconstruct the relative paths. Change-Id: Id0f793315b01c0fc65a4cfb26b3372f9c6688872 Fixes: PYSIDE-975 Reviewed-by: Volker Aßmann <volker.assmann@gmail.com> 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.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/sources/shiboken2/ApiExtractor/typesystem.h b/sources/shiboken2/ApiExtractor/typesystem.h
index 96d0bb5fd..1e1b04136 100644
--- a/sources/shiboken2/ApiExtractor/typesystem.h
+++ b/sources/shiboken2/ApiExtractor/typesystem.h
@@ -835,16 +835,7 @@ public:
{
return m_include;
}
- void setInclude(const Include &inc)
- {
- // This is a workaround for preventing double inclusion of the QSharedPointer implementation
- // header, which does not use header guards. In the previous parser this was not a problem
- // because the Q_QDOC define was set, and the implementation header was never included.
- if (inc.name() == QLatin1String("qsharedpointer_impl.h"))
- m_include = Include(inc.type(), QLatin1String("qsharedpointer.h"));
- else
- m_include = inc;
- }
+ void setInclude(const Include &inc);
// Replace conversionRule arg to CodeSnip in future version
/// Set the type convertion rule