aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-02-27 08:51:53 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-02-28 15:27:04 +0100
commit91d0ec1e864c5c657e351c32af1f8d78a26c543d (patch)
treef0fb82a2d4117c20a64a3ea2a3c17eaa69ca72bd /sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
parent6802e2591a2c25e869391b5714dd25500e5b8b14 (diff)
shiboken6: Add a log file for general messages
Add a new log file mjb_shiboken.log for informational messages to reduce clutter and make warnings stand out. [ChangeLog][shiboken6] An additional log file, mjb_shiboken.log has been introduced which contains informational messages about the types encountered. Change-Id: I042fdfee7bae174d5b214d171a32e3e3cca7a3d7 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp b/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
index 7ce132813..42ecc055c 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
+++ b/sources/shiboken6/ApiExtractor/clangparser/clangparser.cpp
@@ -5,6 +5,7 @@
#include "clangutils.h"
#include "clangdebugutils.h"
#include "compilersupport.h"
+#include "reporthandler.h"
#include <QtCore/QByteArrayList>
#include <QtCore/QDebug>
@@ -260,7 +261,7 @@ static CXTranslationUnit createTranslationUnit(CXIndex index,
clangArgs += detectVulkan();
clangArgs += args;
QScopedArrayPointer<const char *> argv(byteArrayListToFlatArgV(clangArgs));
- qDebug().noquote().nospace() << msgCreateTranslationUnit(clangArgs, flags);
+ ReportHandler::addGeneralMessage(QString::fromUtf8(msgCreateTranslationUnit(clangArgs, flags)));
CXTranslationUnit tu{};
CXErrorCode err = clang_parseTranslationUnit2(index, nullptr, argv.data(),