diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-06-11 10:37:50 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-06-16 15:10:25 +0200 |
| commit | 42c0854f077d004dba43b713ec2cabb76747a270 (patch) | |
| tree | 70b536582638103462b2ef64a65c151867626c55 /build_scripts/platforms/unix.py | |
| parent | 8f1ebf5830edaf417a213d6a632cfbdbe3306e8c (diff) | |
shiboken6: Fix duplicate indexes for template instantiations
For a typedef "using Foo=QList<int>", shiboken generates SBK_QLIST_INT
besides SBK_FOO which is then matched by function arguments. The code
was however missing a check to restrict this to typedefs, so it
triggered for
class Alternative : public QVariantList,
class Sequence : public QVariantList
producing duplicate indexes.
Restrict this to real typedefs (which are also represented as classes.
Split out the function creating the special alternate index for
clarity and add a check for potential equivalent typedefs which would
also produce clashes.
Pick-to: 6.1
Task-number: PYSIDE-1571
Change-Id: I9275963c4ddb8fc589e414ee1fa19282f6004793
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'build_scripts/platforms/unix.py')
0 files changed, 0 insertions, 0 deletions
