4#ifndef QMAKEEVALUATOR_P_H
5#define QMAKEEVALUATOR_P_H
9#define debugMsg if (!m_debugLevel) {} else debugMsgInternal
10#define traceMsg if (!m_debugLevel) {} else traceMsgInternal
11#ifdef PROEVALUATOR_DEBUG
12# define dbgBool(b) (b ? "true" : "false")
14 (r == ReturnError ? "error" :
15 r == ReturnBreak ? "break" :
16 r == ReturnNext ? "next" :
17 r == ReturnReturn ? "return" :
19# define dbgKey(s) s.toString().toQStringView().toLocal8Bit().constData()
20# define dbgStr(s) qPrintable(formatValue(s, true))
21# define dbgStrList(s) qPrintable(formatValueList(s))
22# define dbgSepStrList(s) qPrintable(formatValueList(s, true))
23# define dbgStrListList(s) qPrintable(formatValueListList(s))
24# define dbgQStr(s) dbgStr(ProString(s))
27# define dbgReturn(r) 0
30# define dbgStrList(s) 0
31# define dbgSepStrList(s) 0
32# define dbgStrListList(s) 0
72#ifdef PROEVALUATOR_FULL
const ushort * tokPtr() const
ProKey(const QString &str)
PROITEM_EXPLICIT ProKey(const char *str)
QString join(const ProString &sep) const
void removeEach(const ProStringList &value)
ProString mid(int off, int len=-1) const
int toInt(bool *ok=nullptr, int base=10) const
bool operator==(const QString &other) const
ProString left(int len) const
PROITEM_EXPLICIT ProString(const char *str)
ProString & setSource(int id)
\inmodule QtCore\reentrant
QMakeEvaluator * evaluator
static ALWAYS_INLINE VisitReturn returnBool(bool b)
VisitReturn evaluateBuiltinConditional(const QMakeInternal::QMakeBuiltin &adef, const ProKey &function, const ProStringList &args)
QByteArray getCommandOutput(const QString &args, int *exitCode) const
void populateDeps(const ProStringList &deps, const ProString &prefix, const ProStringList &suffixes, const ProString &priosfx, QHash< ProKey, QSet< ProKey > > &dependencies, ProValueMap &dependees, QMultiMap< int, ProString > &rootSet) const
int currentFileId() const
VisitReturn parseJsonInto(const QByteArray &json, const QString &into, ProValueMap *value)
bool getMemberArgs(const ProKey &name, int srclen, const ProStringList &args, int *start, int *end)
static void initFunctionStatics()
VisitReturn visitProBlock(ProFile *pro, const ushort *tokPtr)
QString currentDirectory() const
ALWAYS_INLINE const ProKey & map(const ProString &var)
QString filePathArg0(const ProStringList &args)
static QString quoteValue(const ProString &val)
void updateFeaturePaths()
ALWAYS_INLINE void traceMsgInternal(const char *,...) const
ProStringList & valuesRef(const ProKey &variableName)
VisitReturn writeFile(const QString &ctx, const QString &fn, QIODevice::OpenMode mode, QMakeVfs::VfsFlags flags, const QString &contents)
VisitReturn evaluateFeatureFile(const QString &fileName, bool silent=false)
QString filePathEnvArg0(const ProStringList &args)
ProStringList values(const ProKey &variableName) const
void evalError(const QString &msg) const
ProValueMapStack m_valuemapStack
QString expandEnvVars(const QString &str) const
void discardFileFromCache(int id)
QMap< ProKey, ProStringList > ProValueMap
static void addJsonObject(const QJsonObject &object, const QString &keyPrefix, ProValueMap *map)
static void addJsonArray(const QJsonArray &array, const QString &keyPrefix, ProValueMap *map)
static ErrorPosition calculateErrorPosition(const QByteArray &json, int offset)
static bool isTrue(const ProString &str)
static void addJsonValue(const QJsonValue &value, const QString &keyPrefix, ProValueMap *map)
static void insertJsonKeyValue(const QString &key, const QStringList &values, ProValueMap *map)
Q_DECLARE_TYPEINFO(QMakeInternal::QMakeBuiltin, Q_RELOCATABLE_TYPE)
#define qPrintable(string)
\inmodule QtCore\reentrant
QMakeBuiltin(const QMakeBuiltinInit &data)
QHash< ProKey, ProKey > varMap
QHash< ProKey, QMakeBuiltin > functions
QHash< ProKey, QMakeBuiltin > expands