![]() |
Qt 6.x
The Qt SDK
|
#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 <qscopedpointer.h>
Go to the source code of this file.
Classes | |
struct | ScopedPointerFileCloser |
Functions | |
static QByteArray | combinePath (const QString &infile, const QString &outfile) |
void | error (const char *msg="Invalid argument") |
static bool | hasNext (const Symbols &symbols, int i) |
static const Symbol & | next (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) |
[0] | |
|
static |
Definition at line 126 of file main.cpp.
References argument, arguments, error, QString::fromLocal8Bit(), QString::isEmpty(), line, QIODeviceBase::ReadOnly, QString::remove(), QList< T >::size(), and QIODeviceBase::Text.
Referenced by runMoc().
|
static |
Definition at line 39 of file main.cpp.
References QFileInfo::absoluteFilePath(), QDir::absolutePath(), QDir::current(), QFileInfo::dir(), QFile::encodeName(), QFileInfo::filePath(), QString::length(), QByteArray::length(), and QDir::relativeFilePath().
Referenced by runMoc().
QByteArray composePreprocessorOutput | ( | const Symbols & | symbols | ) |
Definition at line 73 of file main.cpp.
References hasNext(), i, Symbol::lexem(), Symbol::lineNum, QByteArray::mid(), next, output, PP_NEWLINE, PP_NOTOKEN, PP_STRING_LITERAL, PP_WHITESPACE, and Symbol::token.
Referenced by runMoc().
|
inlinestatic |
Definition at line 66 of file main.cpp.
References i, and QList< T >::size().
Referenced by composePreprocessorOutput(), and QPdfLinkModelPrivate::update().
QT_END_NAMESPACE int main | ( | int | _argc, |
char ** | _argv | ||
) |
[0]
[0]
[0]
[6]
[0]
[0]
[1]
[1]
[2]
[2]
[3]
[3]
[0]
[0]
[1]
[1]
[0]
[0]
[0]
[0]
Definition at line 647 of file main.cpp.
References QT_PREPEND_NAMESPACE(), and runMoc().
Definition at line 69 of file main.cpp.
References QList< T >::at(), and i.
int runMoc | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 158 of file main.cpp.
References QCommandLineParser::addHelpOption(), QCommandLineParser::addOption(), QCommandLineParser::addPositionalArgument(), QCommandLineParser::addVersionOption(), app, QString::append(), arg, QCoreApplication::arguments(), arguments, Macro::arguments, argumentsFromCommandLineAndFile(), QString::at(), collectJson(), combinePath(), composePreprocessorOutput(), QString::constData(), QByteArray::constData(), QScopedPointer< T, Cleanup >::data(), QFile::decodeName(), QFile::encodeName(), error, escapeAndEncodeDependencyPath(), escapeDependencyPath(), files, QString::fromLatin1(), includeList, Parser::includes, QHash< Key, T >::insert(), QString::insert(), QString::isEmpty(), QByteArray::isEmpty(), QList< T >::isEmpty(), Macro::isFunction, QScopedPointer< T, Cleanup >::isNull(), QCommandLineParser::isSet(), Macro::isVariadic, QString::lastIndexOf(), QString::left(), QDir::listSeparator(), Preprocessor::macros, QString::mid(), moc(), mocOutputRevision, out, output, QCommandLineParser::ParseAsLongOptions, QCommandLineParser::positionalArguments(), PP_IDENTIFIER, QString::prepend(), Preprocessor::preprocessed(), Preprocessor::preprocessedIncludes, Preprocessor::preprocessOnly, QCommandLineParser::process(), Q_UNLIKELY, QByteArrayLiteral, qgetenv(), qPrintable, QStringLiteral, QIODeviceBase::ReadOnly, QHash< Key, T >::remove(), QList< T >::removeLast(), QScopedPointer< T, Cleanup >::reset(), Preprocessor::resolveInclude(), QDir::separator(), QCommandLineParser::setApplicationDescription(), QCoreApplication::setApplicationVersion(), Preprocessor::setDebugIncludes(), QCommandLineOption::setDescription(), QCommandLineOption::setFlags(), QCommandLineParser::setSingleDashWordOptionMode(), QCommandLineOption::setValueName(), QCommandLineOption::ShortOptionStyle, QCommandLineParser::showHelp(), QString::size(), QByteArray::split(), split(), Macro::symbols, Preprocessor::tokenize(), Preprocessor::TokenizeDefine, QString::toLocal8Bit(), QChar::toLower(), QString::utf16(), QCommandLineParser::value(), QSet< T >::values(), and QCommandLineParser::values().
Referenced by main().