qt6-bb10/src/tools/tracegen
Ivan Solovev 164e575673 Fix -trace build on Windows
The TraceLoggingValue template does not have overloads for Qt
types, so it was throwing multiple template instantiation errors
while trying to log the unknown types.
Fix it by serializing such types to QString using QDebug::toString,
and the logging this string.

Apart from that, fixes some other compiler errors on Windows build
with -trace enabled:
- implicit size_t to ULONG conversion
- complaints on std::min
- add QT_BEGIN_NAMESPACE/QT_END_NAMESPACE to the generated
  *_tracepoints_p.h headers to fix the namespace build.

Task-number: QTBUG-97246
Fixes: QTBUG-97241
Pick-to: 6.2
Change-Id: Ifba134bab8d7fda7f1e30da9938e25cae813e1c6
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2021-10-25 14:57:18 +02:00
..
CMakeLists.txt Skip unnecessary commands when cross-building tools 2021-09-27 16:34:23 +02:00
etw.cpp Fix -trace build on Windows 2021-10-25 14:57:18 +02:00
etw.h Support for LTTNG and ETW tracing 2018-01-28 19:17:02 +00:00
helpers.cpp Use QList instead of QVector in other tools 2020-06-25 22:30:54 +02:00
helpers.h Use QList instead of QVector in qtbase 2020-07-07 11:48:45 +02:00
lttng.cpp Fix compilation with QT_NAMESPACE and tracing on Linux 2021-10-25 14:57:18 +02:00
lttng.h Support for LTTNG and ETW tracing 2018-01-28 19:17:02 +00:00
panic.cpp Fix build with -trace lttng 2020-09-11 11:30:55 +02:00
panic.h Fix build with -trace lttng 2020-09-11 11:30:55 +02:00
provider.cpp Port tracedef to QRegularExpression 2020-04-13 09:40:26 +02:00
provider.h Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qtheaders.cpp Support for LTTNG and ETW tracing 2018-01-28 19:17:02 +00:00
qtheaders.h Support for LTTNG and ETW tracing 2018-01-28 19:17:02 +00:00
tracegen.cpp Support for LTTNG and ETW tracing 2018-01-28 19:17:02 +00:00