shiboken2/clang: Fix and simplify resolveType() helper
authorFriedemann Kleint <Friedemann.Kleint@qt.io>
Tue, 25 Apr 2023 08:00:39 +0000 (10:00 +0200)
committerDmitry Shachnev <mitya57@debian.org>
Sun, 17 Nov 2024 11:20:58 +0000 (14:20 +0300)
commitff7a866b529d29ebb8ce83dbf5680304e884e843
tree2fe867225d602d9c0075b5fe63b9e9e1d5961cd3
parent3a695d367b897f3a80207467fa3dfa212d8e3a7d
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