aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/clangutils.h
Commit message (Collapse)AuthorAgeFilesLines
* Move the shiboken-generator source aroundFriedemann Kleint2025-11-241-108/+0
| | | | | | | | | 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>
* shiboken6: Fix clazy warnings about too-large underlying types of enumerationsFriedemann Kleint2025-10-021-1/+1
| | | | | | | Use the types suggested by clang-tidy. Change-Id: I0bc80d00e75305423caa4254b1383979e89128ec Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6: Port to Qt include styleFriedemann Kleint2025-03-271-4/+4
| | | | | | | | | Replace the Qt forwarding headers by the .h files. This brings down the dependency list by approx 6%. Pick-to: 6.9 Change-Id: Iaa57400fd20600b940119a6016041b885a68d207 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Use new comparison helpers for equality in shiboken/libpysideFriedemann Kleint2024-03-011-6/+8
| | | | | | | | | Task-number: QTBUG-103757 Task-number: PYSIDE-2497 Change-Id: I1b0fd5b1cad908ee612ab33ca0aacffc55947d87 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Modernize qHash functions preparing introduction of Qt's comparison helpersFriedemann Kleint2023-12-191-4/+4
| | | | | | | | | Use qHashMulti, noexcept and make them inline friends. As a drive-by, also make comparison for Clang structures noexcept. Pick-to: 6.6 Change-Id: Ibdcbf3bde90af0fc419bd1640d3f45602f772f9a Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Replace QPair by std::pairFriedemann Kleint2023-09-291-3/+3
| | | | | | Pick-to: 6.6 6.5 Change-Id: Ic64a2a2c162c54fbbfb6ddc5004ffe1944bfd37a Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Consolidate debug operators for clang typesFriedemann Kleint2023-06-161-2/+0
| | | | | | | | | | | clangutils.cpp had debug operators for the clang types CXType and CXCursor in namespace "clang", duplicating the ones in clangdebugutils.cpp. Consolidate and brush up the code. Pick-to: 6.5 Task-number: PYSIDE-323 Change-Id: Icd72df1859d7ca45a6090d5e91b43981e2f37d9b Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Fix determining unsigned enum values for enums with typedefs as ↵Friedemann Kleint2023-06-151-0/+1
| | | | | | | | | | | | | | | | | | underlying types In case of enums with typedefs as underlying types, for example: enum GlyphRunRetrievalFlag : quint16 { RetrieveAll = 0xffff the unsignedness-detection would fail. Add helper functions to fully resolve typedefs for this case. Pick-to: 6.5 Task-number: PYSIDE-1735 Change-Id: Ib42c4a5b34cb576a8246f4734d4ae8dacb9ac2e7 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* shiboken6/clang: Record scope resolution of arguments/function returnFriedemann Kleint2023-04-281-0/+1
| | | | | | | | | | | | | Add a flag indicating whether a type was specified with a leading "::" (scope resolution). Such parameters previously caused the function to rejected due to the "::TypeName" not being found. The type resolution added for clang 16 strips these qualifiers though, so, the information needs to be stored. Task-number: PYSIDE-2288 Pick-to: 6.5 5.15 Change-Id: I27d27c94ec43bcc4cb3b79e6e9ce6706c749a1e9 Reviewed-by: Christian Tismer <tismer@stackless.com>
* shiboken6/clang: Fix build with clang 16Friedemann Kleint2023-04-281-0/+1
| | | | | | | | | | | | clang 16 returns more elaborated types instead of fully qualified type names. Qualify elaborated types when retrieving the type name. [ChangeLog][shiboken6] Support for libclang version 16 has been added. Task-number: PYSIDE-2288 Pick-to: 6.5 5.15 Change-Id: Ibd428280180967f11d82a72159e744c016afc927 Reviewed-by: Christian Tismer <tismer@stackless.com>
* shiboken6/clang: Add debug operators for clang typesFriedemann Kleint2023-04-261-0/+2
| | | | | | | | Task-number: PYSIDE-2288 Pick-to: 6.5 Change-Id: Ib2fc889c4165afe7b4ee2d6ea36c584f48fb8ddd Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Port some loop variables to qsizetypeFriedemann Kleint2022-10-131-3/+4
| | | | | | | | Where possible, used range-based for. Otherwise, use qsizetype for loop variables. Change-Id: I4773bee8468ce73722656ec73845369b7d40d4cd 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: Remove Qt 5 compatibility headerFriedemann Kleint2021-07-211-3/+2
| | | | | Change-Id: Ie79486910936885b9d7b311204bf980462145058 Reviewed-by: Christian Tismer <tismer@stackless.com>
* shiboken6: Fix a crash when printing clang diagnosticsFriedemann Kleint2021-02-011-2/+6
| | | | | | | | | | | | | | The CXFile struct used in the Diagnostic struct representing a diagnostic message is invalid after clang parsing has finished and causes a crash when printing. Expand it to a QString at creation time. Apparently, this occurred with recent clang versions. Pick-to: 6.0 Pick-to: 5.15 Change-Id: I297014e272d6814f04e8f0273e8ae79ab8264138 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Replace QVector by QListFriedemann Kleint2020-11-251-3/+3
| | | | | | | | | | | | | | | | Change AbstractMetaClass::templateArguments() to return TypeEntries (const TypeEntry *) instead non-const. Remove redundant typedef OverloadData::MetaFunctionList. Use existing typedefs in some places. Add new typedefs for MetaObjectBuilder::EnumValues and AbstractMetaFunctionCList. Change-Id: Ia241b5fbe54d60ea57175fb1f6c844604e066a3d Reviewed-by: Christian Tismer <tismer@stackless.com>
* Rename shiboken2 to shiboken6Friedemann Kleint2020-10-281-0/+124
Adapt CMake files, build scripts, tests and examples. Task-number: PYSIDE-904 Change-Id: I4cb5ee4c8df539546014b08202a7b1e98ed3ff07 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>