Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
preprocessor.cpp File Reference

(62d02c1d509780eca7d3a4c35ac64a0d475d0fe7)

#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 cleanPackageName(), QResourcePrivate::ensureChildren(), QResourcePrivate::load(), Preprocessor::preprocessed(), and readInputFile().

+ 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 966 of file preprocessor.cpp.

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

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 959 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 996 of file preprocessor.cpp.

References QByteArray::constData(), QString::fromLocal8Bit(), QByteArray::indexOf(), QByteArray::left(), QByteArray::mid(), Q_UNLIKELY, and QByteArray().

Referenced by Preprocessor::resolveInclude().

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