Details
Description
When adjusting spaces after pointer variables globally, I ran into the
problem that shiboken crashed when I tried to change
QByteArray* cppSelf = %CONVERTTOCPP[QByteArray *](obj);
to
QByteArray *cppSelf = %CONVERTTOCPP[QByteArray *](obj);
The temporary work-around was to add another space, resulting in
QByteArray * cppSelf = %CONVERTTOCPP[QByteArray *](obj);
//XXX /|\ omitting this space crashes shiboken!
Assert (sources/shiboken2/generator/shiboken2/shibokengenerator.cpp:2048):
message "Types of receiver variable ('QTimer') and %CONVERTTOCPP type system variable ('QTimer *') differ." QString
The regex CONVERTTOCPP_REGEX at sources/shiboken2/generator/shiboken2/shibokengenerator.cpp:152 would have to be fixed to capture this correctly.
Attachments
For Gerrit Dashboard: PYSIDE-1037 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
265188,12 | Cleanup pointer whitespace everywhere | 5.12 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
267653,6 | shiboken: Improve handling of pointer types for CONVERTTOCPP in injected code | 5.12 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
267654,3 | shiboken: Allow for "auto" as target of type for CONVERTTOCPP in injected code | 5.12 | pyside/pyside-setup | Status: MERGED | +2 | 0 |