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, 14 Apr 2024 20:48:11 +0000 (23:48 +0300)
commitbf09a898e6e8483dc0ad89351f8d6fd46a28a0e8
tree674b0d2e9abf3fc89d2082743b3c827884535be8
parent103359c0c6b8ff0d82ce27f79727820233c4b7c4
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