aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/pymethoddefentry.cpp
Commit message (Collapse)AuthorAgeFilesLines
* shiboken6: Split out generator stringsFriedemann Kleint2023-09-271-2/+7
| | | | | | | | | | | | | | | Revisit their usage and turn some into helper functions. Move some additional strings from CppGenerator there. The change is preparing for splitting out the smart pointer code from CppGenerator. As a drive-by, extract a helper for writing casts to PyCFunction. Pick-to: 6.6 Task-number: PYSIDE-2462 Change-Id: I82fe8c935d4377ee154b4b83c461edeb60090a0e Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix warnings about missing initializersFriedemann Kleint2022-09-231-1/+3
| | | | | | | | | | Specify all initializers for structs in application, library and generated code, fixing warnings like: sources/shiboken6/libshiboken/pep384impl.cpp:42: warning: missing initializer for member ‘PyMethodDef::ml_doc [-Wmissing-field-initializers] Change-Id: Icacf86b89011663e5007319ec695ca0ae8ab194e Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Use SPDX license identifiersLucie Gérard2022-05-271-27/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I065150015bdb84a3096b5b39c061cf0a20ab637d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6: Add doc field to PyMethodDefFriedemann Kleint2022-05-241-1/+6
| | | | | | | | | Amends ac9619647cf3cb94d57fac4daf955ad541beacb4. Task-number: PYSIDE-1202 Task-number: PYSIDE-1905 Change-Id: I2feadb4de511073ff27a9674dcdc8a296d3703fb Reviewed-by: Christian Tismer <tismer@stackless.com>
* shiboken6: Introduce a struct for PyMethodDefFriedemann Kleint2022-05-181-0/+66
Instead of passing a maximum number of entries to write, add a data structure for PyMethodDef and pass lists of it. Task-number: PYSIDE-1202 Task-number: PYSIDE-1905 Pick-to: 6.3 Change-Id: I110413aaedaf959aeac2c87f8fe0334f940a793d Reviewed-by: Christian Tismer <tismer@stackless.com>