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>
Thu, 8 Feb 2024 08:13:11 +0000 (11:13 +0300)
commit6ad5fbb59b8265839115c3edcfc8aeaad4a67258
treefcbe01f18ed8de654312fed07394c62cede619ea
parentaa6481338eafe90fadbbde35b9f29754b1fbcce8
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