aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2
blob: 5e3861f30972d5021f312564405d9139211c518a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
tree 6001eea592011dc28748a61aa0d7c9819b6b10de
parent c8dbcc33ff1e58607cd4c3a40c5b459d2f8e2e05
author Alexandru Croitor <alexandru.croitor@qt.io> 1480950847 +0100
committer Alexandru Croitor <alexandru.croitor@qt.io> 1481292946 +0000

Fix shiboken crash when generating template argument conversion code

Shiboken tried to generate conversion code for every argument in
a C++ method, and in case of a template method, it would crash
with an error because it couldn't resolve the type of the templated
argument when trying look it up in the type database. e.g.
template <class T> void foo(QList<T *>); would crash because T is not
a valid type.

Fix makes sure to skip and warn about any container type
instantiations which have unresolved types as part of their signature.

Change-Id: I34ac13dd83572ab9a7185ae7991276396e21b86e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>