diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-12-15 13:35:29 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-12-16 15:05:20 +0100 |
| commit | 0d0ffa51609670d3a034c0b5ac5d2b6855bf9372 (patch) | |
| tree | 667d2e222d2f62a465f45a7e5903b6240b4af8b6 /sources/shiboken6/ApiExtractor/classdocumentation.cpp | |
| parent | e35ade02815594d30ed3019773721b86ffe673e0 (diff) | |
shiboken6/generator: Fix CMake UNITY_BUILD (jumbo)
- Use a string literal for "::"
- Add a header for debug helpers
Change-Id: I605a00fea1b936032afa93d9be45b7da31d42473
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/classdocumentation.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/classdocumentation.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/sources/shiboken6/ApiExtractor/classdocumentation.cpp b/sources/shiboken6/ApiExtractor/classdocumentation.cpp index 3d4abb87d..2008d83d2 100644 --- a/sources/shiboken6/ApiExtractor/classdocumentation.cpp +++ b/sources/shiboken6/ApiExtractor/classdocumentation.cpp @@ -3,6 +3,7 @@ #include "classdocumentation.h" #include "messages.h" +#include "debughelpers_p.h" #include <QtCore/QDebug> #include <QtCore/QBuffer> @@ -277,21 +278,6 @@ QString webXmlModuleDescription(const QString &fileName, QString *errorMessage) return result; } -// Debug helpers -template <class T> -static void formatList(QDebug &debug, const char *title, const QList<T> &l) -{ - if (const qsizetype size = l.size()) { - debug << title << '[' << size << "]=("; - for (qsizetype i = 0; i < size; ++i) { - if (i) - debug << ", "; - debug << l.at(i); - } - debug << ')'; - } -} - static void formatDescription(QDebug &debug, const QString &desc) { debug << "description="; @@ -351,7 +337,7 @@ QDebug operator<<(QDebug debug, const FunctionDocumentation &f) debug << ", returns " << f.returnType; if (f.constant) debug << ", const"; - formatList(debug, ", parameters", f.parameters); + formatList(debug, ", parameters", f.parameters, ", "); debug << ", signature=\"" << f.signature << "\", "; formatDescription(debug, f.description); } |
