diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-11-18 15:30:57 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-11-19 21:56:25 +0100 |
| commit | bce5860c3855cc5d86aa5e7df59a35f9c9bb0455 (patch) | |
| tree | 64036e14659cdad723af0c41304ba288ed185c41 /sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp | |
| parent | 072ffd057a29a694a0ad91894736bb4d0a88738e (diff) | |
shiboken6/compilersupport.cpp: Remove values that are only used for logging
Remove the getters/setters and make them function-local as
they unnecessarily clutter the code.
Task-number: PYSIDE-3105
Change-Id: Ia56f65ae169e1e9e7b96ca2d98b6694ae9f3f208
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp | 8 |
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 << '.'; |
