shiboken2/clang: Fix and simplify resolveType() helper
authorFriedemann Kleint <Friedemann.Kleint@qt.io>
Tue, 25 Apr 2023 08:00:39 +0000 (10:00 +0200)
committerGraham Inggs <ginggs@debian.org>
Sat, 25 Jan 2025 16:33:38 +0000 (16:33 +0000)
commit7c40b177283c3a7b19d56bb62a58df09f35d1995
tree602bbc2d3d5d003db738ac25d9fb09d86bd79691
parentf1185ce80454aca80426ed77d99dca14f6941e7c
shiboken2/clang: Fix and simplify resolveType() helper

The function had a bug which only manifested with clang 16:
"type" should have been assigned the type of the cursor
obtained from clang_getTypeDeclaration(). With this, the complicated
lookup code in getBaseClass() can be removed.

Task-number: PYSIDE-2288
Pick-to: 6.5
Change-Id: I861e30451b3f4af2ec0c2e4ffa4179a429854533
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Gbp-Pq: Name shiboken2-clang-Fix-and-simplify-resolveType-helper.patch
sources/shiboken2/ApiExtractor/clangparser/clangbuilder.cpp