Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
main.cpp File Reference

(89871438b4e65b209c12ccbd647c782ea19fd4d5)

#include <depfile_shared.h>
#include "preprocessor.h"
#include "moc.h"
#include "outputrevision.h"
#include "collectjson.h"
#include <qfile.h>
#include <qfileinfo.h>
#include <qdir.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <errno.h>
#include <qcoreapplication.h>
#include <qcommandlineoption.h>
#include <qcommandlineparser.h>
#include <memory>
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Typedefs

using File = decltype(openFileForWriting({}))
 

Functions

static QByteArray combinePath (const QString &infile, const QString &outfile)
 
void error (const char *msg="Invalid argument")
 
static auto openFileForWriting (const QString &name)
 
static bool hasNext (const Symbols &symbols, int i)
 
static const Symbolnext (const Symbols &symbols, int &i)
 
QByteArray composePreprocessorOutput (const Symbols &symbols)
 
static QStringList argumentsFromCommandLineAndFile (const QStringList &arguments, bool &hasOptionFiles)
 
int runMoc (int argc, char **argv)
 
QT_END_NAMESPACE int main (int _argc, char **_argv)
 [48]
 

Typedef Documentation

◆ File

decltype(openFileForWriting({})) typedef File = decltype(openFileForWriting({}))

Definition at line 76 of file main.cpp.

Function Documentation

◆ argumentsFromCommandLineAndFile()

static QStringList argumentsFromCommandLineAndFile ( const QStringList & arguments,
bool & hasOptionFiles )
static

Definition at line 138 of file main.cpp.

◆ combinePath()

static QByteArray combinePath ( const QString & infile,
const QString & outfile )
static

Definition at line 40 of file main.cpp.

◆ composePreprocessorOutput()

QByteArray composePreprocessorOutput ( const Symbols & symbols)

Definition at line 85 of file main.cpp.

References hasNext(), Symbol::lineNum, next(), and Symbol::token.

+ Here is the call graph for this function:

◆ error()

void error ( const char * msg = "Invalid argument")

Definition at line 56 of file main.cpp.

◆ hasNext()

static bool hasNext ( const Symbols & symbols,
int i )
inlinestatic

Definition at line 78 of file main.cpp.

Referenced by composePreprocessorOutput().

+ Here is the caller graph for this function:

◆ main()

QT_END_NAMESPACE int main ( int _argc,
char ** _argv )

[48]

[dynamic_tooltip]

[5]

[2]

[0]

[6]

[48]

[48]

[6]

[0]

[0]

[1]

[1]

[2]

[2]

[3]

[3]

[0]

[0]

[1]

[1]

[2]

[2]

[3]

[3]

[0]

[0]

[1]

[1]

[2]

[2]

[3]

[3]

[0]

[0]

[0]

[0]

[1]

[1]

[1]

[1]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

Definition at line 657 of file main.cpp.

References runMoc().

+ Here is the call graph for this function:

◆ next()

static const Symbol & next ( const Symbols & symbols,
int & i )
inlinestatic

Definition at line 81 of file main.cpp.

Referenced by composePreprocessorOutput().

+ Here is the caller graph for this function:

◆ openFileForWriting()

static auto openFileForWriting ( const QString & name)
static

Definition at line 62 of file main.cpp.

◆ runMoc()

int runMoc ( int argc,
char ** argv )

Definition at line 170 of file main.cpp.

References Moc::generate(), Macro::isFunction, Macro::isVariadic, Preprocessor::macros, Moc::noInclude, Moc::parse(), Preprocessor::preprocessOnly, and Moc::requireCompleteTypes.

Referenced by main().

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