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>
Thu, 8 Feb 2024 08:13:11 +0000 (11:13 +0300)
commit1907d2359b12c1fc695d6a6c518cdc642e1b1323
treede1da27887694f8be987f02447f4491cd0f19730
parentc0aafb26aea9aa7e53ab368c0a06e9065335f1d2
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