aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp b/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
index 4c63c3e88..9289a4cb5 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
+++ b/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
@@ -284,17 +284,17 @@ static void setupTarget(CXTranslationUnit translationUnit)
{
const CXTargetInfo targetInfo = clang_getTranslationUnitTargetInfo(translationUnit);
const auto tripleCS = clang_TargetInfo_getTriple(targetInfo);
- clang::setPointerSize(clang_TargetInfo_getPointerWidth(targetInfo));
- clang::setTargetTriple(QString::fromUtf8(clang_getCString(tripleCS)));
+ const int pointerSize = clang_TargetInfo_getPointerWidth(targetInfo);
+ const QByteArray targetTriple = clang_getCString(tripleCS);
clang_disposeString(tripleCS);
QString message;
{
QTextStream str(&message);
str << "CLANG v" << CINDEX_VERSION_MAJOR << '.' << CINDEX_VERSION_MINOR
- << " targeting \"" << targetTriple() << "\"/"
+ << " targeting \"" << targetTriple << "\"/"
<< clang::compilerTripletValue(clang::compiler())
- << ", " << pointerSize() << "bit";
+ << ", " << pointerSize << "bit";
if (clang::isCrossCompilation())
str << ", (cross build)";
str << '.';