QDoc: Add LLVM 22 implementation to QualTypeNames fork


LLVM 22 introduced sweeping changes to the Clang type system that break
the existing QualTypeNames fork. NestedNameSpecifier changed from a
pointer type to a value type, RecordType merged into TagType, and
ElaboratedType merged into TypedefType and TagType through a new
TypeWithKeyword base. These changes touch nearly every function in the
fork, making incremental adaptation impractical.

The fork now carries both the existing pre-22 implementation and a
complete LLVM 22 implementation behind version guards. The LLVM 22 block
is adapted from upstream clang/lib/AST/QualTypeNames.cpp (release/22.x)
with three marked divergences: the random-specialization block in scope
resolution is disabled to avoid unstable output, TypedefType qualifier
resolution prefers the existing qualifier to preserve member type alias
context, and the unhandled-type assertion is relaxed to a silent drop
for types QDoc encounters that upstream doesn't anticipate.

Both implementations are completely self-contained within their version
guard to avoid subtle behavioral differences from shared code paths.

Task-number: QTBUG-144620
Change-Id: I36c4115b1c20f165d87a244b9aa852cb66352c99
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commitf75f4090ed8e5c9dc898a313a5dd9b6878c2f034
parent862d249c2df579de87242d7327998c6c418bea21
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeFri, 20 Mar 2026 15:47:12 +0100