QDoc: Own clang argument strings to prevent dangling pointers
The Clang integration stores compiler arguments as a vector of raw
const char* pointers, but several of those pointers refer to
QByteArray temporaries or function-local variables that are destroyed
before the pointers are consumed by clang_parseTranslationUnit2.
The argument vector now stores QByteArray values directly, ensuring
every string's lifetime matches its container. A short-lived const
char* array is built at each clang API call site where the C
interface requires it.
Fixes: QTBUG-145608
Pick-to: 6.11
Change-Id: Ia928245deb5ecfbe1307febd11e7f84866fa4a7c
Reviewed-by: Topi Reinio <topi.reinio@qt.io>