// Copyright (C) 2017 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Rafael Roquetto // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #ifndef HELPERS_H #define HELPERS_H #include "provider.h" #include #include #include enum ParamType { LTTNG, ETW, CTF }; QString typeToTypeName(const QString &type); QString includeGuard(const QString &filename); QString formatFunctionSignature(const QList &args); QString formatParameterList(const Provider &provider, const QList &args, const QList &fields, ParamType type); void writeCommonPrologue(QTextStream &stream); template static QString aggregateListValues(int value, const QList &list) { QStringList values; for (const T &l : list) { if (l.value == value) values << l.name; } return values.join(QLatin1Char('_')); } #endif // HELPERS_H