aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6_generator/ApiExtractor
Commit message (Collapse)AuthorAgeFilesLines
* shiboken6/AbstractMetaBuilder: Split class/namespace functionsHEADdevFriedemann Kleint2 days2-93/+114
| | | | | | | | | | 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 Kleint2 days2-0/+3
| | | | | | Task-number: PYSIDE-3245 Change-Id: I9ea4bb01bc07a7a8d32aeb35829893fbccdf84f0 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Clear the cached function signatures on modificationsFriedemann Kleint2 days2-12/+19
| | | | | | | | 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 Kleint2 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>
* Indicate user added/user declared functions in signature commentFriedemann Kleint3 days1-0/+4
| | | | | | | | | Complements e9479562e91cf71a700a999fc7a443ea53a0fb6e. Task-number: PYSIDE-3245 Change-Id: I14487bbd39db2492e62b41fb4da334a0da914f47 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
* shiboken6: Fix clang-tidy warnings about QString::fromLatin1()Friedemann Kleint3 days4-18/+20
| | | | | | | | | Replace by literals/additions, fixing: - warning: QString::fromLatin1() being passed a literal [clazy-qstring-allocations] Pick-to: 6.10 6.8 Change-Id: I60be74c4f4b86c943a02392734aadf406567e338 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Fix a few clang-tidy warningsFriedemann Kleint3 days1-7/+7
| | | | | | | | | - std::as_const in for loops - avoid copy Pick-to: 6.10 6.8 Change-Id: Iccf2b7a30b676a228af074c2f804e7b4a6ef11f7 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Move comparison operator enum type out of AbstractMetaFunctionFriedemann Kleint9 days5-27/+65
| | | | | | | | | Turn it into a flag to be able to specify masks to be synthesized. Add a function checking for ordering comparisons for later use. Task-number: PYSIDE-3245 Change-Id: Ibab47528f92ff8859677a85cccdcad50a767ccac Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6: Do not generate reverse comparison operatorsFriedemann Kleint9 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 Kleint9 days3-25/+31
| | | | | | | | into AbstractMetaFunction Task-number: PYSIDE-3245 Change-Id: If3590dd1fa54c45de0295973cad37bce74ea682f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6: Refactor signature formatting for overload decisor commentsFriedemann Kleint9 days1-17/+35
| | | | | | | | | | | | | Separate the overload decisor comment code path from the minimal signature and use in all relevant places in the generated code. Remove the Qt signature normalization. Add more information about operators. Task-number: PYSIDE-3245 Change-Id: Id023d36a3b9112fccb36c9f8a03e13fac6628b75 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6: Add messages about synthesized functionsFriedemann Kleint9 days8-6/+106
| | | | | | | | | | 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 Kleint9 days7-35/+39
| | | | | | | | 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 Kleint9 days2-10/+13
| | | | | | | | | | 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>
* Split off shibokengeneratorFriedemann Kleint2025-11-241-2/+0
| | | | | | | | | | | | Split the generator executable off to a new directory shiboken6_generator. Adapting the build scripts and cmake configuration. Task-number: PYSIDE-962 Task-number: PYSIDE-1587 Change-Id: I301f96daace0331b0abc17bc59b44cd2396b9953 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Move the shiboken-generator source aroundFriedemann Kleint2025-11-24228-0/+48147
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>