Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
preprocessor.cpp File Reference
#include "preprocessor.h"
#include "utils.h"
#include <qstringlist.h>
#include <qfile.h>
#include <qdir.h>
#include <qfileinfo.h>
#include <qvarlengtharray.h>
#include "ppkeywords.cpp"
#include "keywords.cpp"
+ Include dependency graph for preprocessor.cpp:

Go to the source code of this file.

Classes

class  PP_Expression
 

Functions

static QByteArray cleaned (const QByteArray &input)
 
static QByteArray readOrMapFile (QFile *file)
 
static void mergeStringLiterals (Symbols *_symbols)
 
static QByteArray searchIncludePaths (const QList< Parser::IncludePath > &includepaths, const QByteArray &include, const bool debugIncludes)
 

Function Documentation

◆ cleaned()

static QByteArray cleaned ( const QByteArray input)
static

Definition at line 23 of file preprocessor.cpp.

References ch, is_space(), and output.

Referenced by QResourcePrivate::ensureChildren(), QResourcePrivate::load(), and Preprocessor::preprocessed().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mergeStringLiterals()

static void mergeStringLiterals ( Symbols _symbols)
static

Definition at line 968 of file preprocessor.cpp.

References QByteArray::append(), QList< T >::begin(), QList< T >::end(), QList< T >::erase(), i, j, QByteArray::reserve(), QByteArray::resize(), and QByteArray::size().

Referenced by Preprocessor::preprocessed().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readOrMapFile()

static QByteArray readOrMapFile ( QFile file)
static

Definition at line 961 of file preprocessor.cpp.

References file, QByteArray::fromRawData(), QFileDevice::map(), QIODevice::readAll(), and QFile::size().

Referenced by Preprocessor::preprocessed().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ searchIncludePaths()

static QByteArray searchIncludePaths ( const QList< Parser::IncludePath > &  includepaths,
const QByteArray include,
const bool  debugIncludes 
)
static

Definition at line 998 of file preprocessor.cpp.

References QFileInfo::canonicalFilePath(), QByteArray::constData(), QFileInfo::exists(), fi, QFileInfo::filePath(), QString::fromLocal8Bit(), QByteArray::indexOf(), QFileInfo::isDir(), QByteArray::left(), QByteArray::mid(), Q_UNLIKELY, QFileInfo::setFile(), and QString::toLocal8Bit().

Referenced by Preprocessor::resolveInclude().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: