aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6_generator/ApiExtractor/abstractmetabuilder.cpp
Commit message (Collapse)AuthorAgeFilesLines
* shiboken6/AbstractMetaBuilder: Split class/namespace functionsHEADdevFriedemann Kleint3 days1-88/+104
| | | | | | | | | | Split the code paths between namespace and classes for clarity. Add AbstractMetaBuilderPrivate::traverseClassFunction() to move the function parsing code out of the loop. Task-number: PYSIDE-3245 Change-Id: I3c616567df87d0408d5a6567343cdd8e3dfbefaa Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Make synthesized comparison operator functions constFriedemann Kleint3 days1-0/+2
| | | | | | Task-number: PYSIDE-3245 Change-Id: I9ea4bb01bc07a7a8d32aeb35829893fbccdf84f0 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Clear the cached function signatures on modificationsFriedemann Kleint3 days1-6/+4
| | | | | | | | Fix code handling adding functions to properly store the signature. Task-number: PYSIDE-3245 Change-Id: Ia17c4b8cae7addd1a84f2c621cb46cbb532539db Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Restrict warning about const mismatch in function modificationsFriedemann Kleint3 days1-1/+9
| | | | | | | | | | | Prevent it from triggering for operators synthesized from free operators using some heuristic (',' in parameter list indicating several parameters). Amends 7c358ca13760c9e422c38d8c28e56b197663debf. Task-number: PYSIDE-3245 Change-Id: If5e9c283bff6fe2a26350f6781cdef9684d8a1ca Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Do not generate reverse comparison operatorsFriedemann Kleint10 days1-1/+7
| | | | | | | | | | This leads to duplicated code in Py_tp_richcompare since CppGenerator::writeRichCompareFunction() does not handle it and CPython swaps the arguments itself. Task-number: PYSIDE-3245 Change-Id: I39e9bf6adb2f737ad5f66327cd5a6f9447e86c9d Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6: Move argument manipulation functions from AbstractMetaBuilder ↵Friedemann Kleint10 days1-25/+5
| | | | | | | | into AbstractMetaFunction Task-number: PYSIDE-3245 Change-Id: If3590dd1fa54c45de0295973cad37bce74ea682f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6: Add messages about synthesized functionsFriedemann Kleint10 days1-3/+7
| | | | | | | | | | Extend the internal flags of AbstractMetaFunction by C++ 20 operator information and add helpers to format messages based on that. Task-number: PYSIDE-3245 Change-Id: I65311e973f8995cd2535e4b936e9f576fa312b1b Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6: Move AbstractMetaFunction::Flags out of the classFriedemann Kleint10 days1-8/+8
| | | | | | | | This enables using them for messages and other things. Task-number: PYSIDE-3245 Change-Id: If2acccbfdbc53d28f84cfe5341898347a9938c53 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6: Rename traverseOperatorFunction() to traverseFreeOperatorFunction()Friedemann Kleint10 days1-8/+11
| | | | | | | | | | Make it clear that the function is meant to be called for the global namespaces or other namespaces, not for classes. Add assert and comment. Task-number: PYSIDE-3245 Change-Id: I0e5e07c7822286ff148c5b76ff292d45d799165d Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Move the shiboken-generator source aroundFriedemann Kleint2025-11-241-0/+3894
THIS COMMIT WAS GENERATED BY A SCRIPT Task-number: PYSIDE-962 Task-number: PYSIDE-1587 Change-Id: I58b05c3d05606efb6303193f2d7f907a0ab5741b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>