shiboken2/clang: Fix build with clang 16
authorFriedemann Kleint <Friedemann.Kleint@qt.io>
Tue, 25 Apr 2023 12:01:45 +0000 (14:01 +0200)
committerGraham Inggs <ginggs@debian.org>
Sat, 25 Jan 2025 16:33:38 +0000 (16:33 +0000)
commit83998764aa0d3564a018d33623ef0a285fe372ea
tree1fc1d764c50376bf905878c234745cb7b7af8efc
parentff365cf583f5e6666689e44df493eda3c3b8ee4b
shiboken2/clang: Fix build with clang 16

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>
(cherry picked from commit 44ef1859214c66861a251d4a0faf5c38dc050850)

Gbp-Pq: Name shiboken2-clang-Fix-build-with-clang-16.patch
sources/shiboken2/ApiExtractor/clangparser/clangbuilder.cpp
sources/shiboken2/ApiExtractor/clangparser/clangutils.cpp
sources/shiboken2/ApiExtractor/clangparser/clangutils.h
sources/shiboken2/ApiExtractor/tests/testtemplates.cpp