Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
helpers.h File Reference
#include "provider.h"
#include <qlist.h>
#include <qstring.h>
#include <qtextstream.h>
+ Include dependency graph for helpers.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  ParamType { LTTNG , ETW , CTF }
 

Functions

QString typeToTypeName (const QString &type)
 
QString includeGuard (const QString &filename)
 
QString formatFunctionSignature (const QList< Tracepoint::Argument > &args)
 
QString formatParameterList (const Provider &provider, const QList< Tracepoint::Argument > &args, const QList< Tracepoint::Field > &fields, ParamType type)
 
void writeCommonPrologue (QTextStream &stream)
 
template<typename T >
static QString aggregateListValues (int value, const QList< T > &list)
 

Enumeration Type Documentation

◆ ParamType

enum ParamType
Enumerator
LTTNG 
ETW 
CTF 

Definition at line 13 of file helpers.h.

Function Documentation

◆ aggregateListValues()

template<typename T >
static QString aggregateListValues ( int  value,
const QList< T > &  list 
)
static

Definition at line 27 of file helpers.h.

References list.

Referenced by writeEnumConverter(), writeEnums(), writeFlagConverter(), and writeFlags().

+ Here is the caller graph for this function:

◆ formatFunctionSignature()

QString formatFunctionSignature ( const QList< Tracepoint::Argument > &  args)

Definition at line 50 of file helpers.cpp.

Referenced by writeWrapper(), writeWrapper(), and writeWrapper().

+ Here is the caller graph for this function:

◆ formatParameterList()

QString formatParameterList ( const Provider provider,
const QList< Tracepoint::Argument > &  args,
const QList< Tracepoint::Field > &  fields,
ParamType  type 
)

Definition at line 57 of file helpers.cpp.

Referenced by writeWrapper(), writeWrapper(), and writeWrapper().

+ Here is the caller graph for this function:

◆ includeGuard()

QString includeGuard ( const QString filename)

Definition at line 20 of file helpers.cpp.

Referenced by writeEpilogue(), writeEpilogue(), writeEpilogue(), writeFlags(), writePrologue(), writePrologue(), writePrologue(), writeTracepoints(), writeWrapper(), writeWrapper(), and writeWrapper().

+ Here is the caller graph for this function:

◆ typeToTypeName()

QString typeToTypeName ( const QString type)

Definition at line 14 of file helpers.cpp.

Referenced by writeCtfMacro(), writeEnumConverter(), writeEnums(), writeEtwMacro(), writeFlagConverter(), and writeFlags().

+ Here is the caller graph for this function:

◆ writeCommonPrologue()

void writeCommonPrologue ( QTextStream stream)

Definition at line 9 of file helpers.cpp.

Referenced by writePrologue(), writePrologue(), and writePrologue().

+ Here is the caller graph for this function: