shiboken2/clang: Record scope resolution of arguments/function return
authorFriedemann Kleint <Friedemann.Kleint@qt.io>
Thu, 27 Apr 2023 10:44:10 +0000 (12:44 +0200)
committerDmitry Shachnev <mitya57@debian.org>
Sun, 17 Nov 2024 11:20:58 +0000 (14:20 +0300)
commit007e6ca29001ecbcdb4448441216bd20b2926122
treeb3118f9ac449749e8d1d3ae7a910926ccbd81827
parent8a7e39860efe4659e3c26235cc91854289813fb9
shiboken2/clang: Record scope resolution of arguments/function return

Add a flag indicating whether a type was specified with a leading "::"
(scope resolution). Such parameters previously caused the function to
rejected due to the "::TypeName" not being found. The type resolution
added for clang 16 strips these qualifiers though, so, the information
needs to be stored.

Task-number: PYSIDE-2288
Pick-to: 6.5 5.15
Change-Id: I27d27c94ec43bcc4cb3b79e6e9ce6706c749a1e9
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 075d8ad4660f05e6d2583ff1c05e9987ad624bfe)

Gbp-Pq: Name shiboken2-clang-Record-scope-resolution-of-arguments-func.patch
sources/shiboken2/ApiExtractor/clangparser/clangbuilder.cpp
sources/shiboken2/ApiExtractor/clangparser/clangutils.cpp
sources/shiboken2/ApiExtractor/clangparser/clangutils.h
sources/shiboken2/ApiExtractor/parser/codemodel.cpp
sources/shiboken2/ApiExtractor/parser/codemodel.h