summaryrefslogtreecommitdiffstats
path: root/src/linguist/shared/qmakeevaluator.h
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2012-09-19 21:56:16 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-28 12:50:39 +0200
commitcdc456281617cffc12e6f406d8e2c7fcf7e97144 (patch)
treeab89a23f125c01fd854ade8d8b8f18691f12040d /src/linguist/shared/qmakeevaluator.h
parentb48c0d1307597eb8576cae2cb3fec969af9a1f80 (diff)
make error() abort the qmake run, not just the current file
sync up implementation with qmake. this doesn't actually have an effect on lupdate, as error() is disarmed in cumulative mode. Change-Id: I82fc55680f9ffb227e25acb39c797596225ba89e Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> (cherry picked from qtbase/0da7f097249f71726140a38647bb4824b09fad7b) Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/linguist/shared/qmakeevaluator.h')
-rw-r--r--src/linguist/shared/qmakeevaluator.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/linguist/shared/qmakeevaluator.h b/src/linguist/shared/qmakeevaluator.h
index dee73d104..21f487a3b 100644
--- a/src/linguist/shared/qmakeevaluator.h
+++ b/src/linguist/shared/qmakeevaluator.h
@@ -176,15 +176,15 @@ public:
QString resolvePath(const QString &fileName) const
{ return QMakeInternal::IoUtils::resolvePath(currentDirectory(), fileName); }
- bool evaluateFile(const QString &fileName, QMakeHandler::EvalFileType type,
- LoadFlags flags);
- bool evaluateFileChecked(const QString &fileName, QMakeHandler::EvalFileType type,
+ VisitReturn evaluateFile(const QString &fileName, QMakeHandler::EvalFileType type,
LoadFlags flags);
- bool evaluateFeatureFile(const QString &fileName, bool silent = false);
- bool evaluateFileInto(const QString &fileName,
- ProValueMap *values, // output-only
- LoadFlags flags);
- void evaluateConfigFeatures();
+ VisitReturn evaluateFileChecked(const QString &fileName, QMakeHandler::EvalFileType type,
+ LoadFlags flags);
+ VisitReturn evaluateFeatureFile(const QString &fileName, bool silent = false);
+ VisitReturn evaluateFileInto(const QString &fileName,
+ ProValueMap *values, // output-only
+ LoadFlags flags);
+ VisitReturn evaluateConfigFeatures();
void message(int type, const QString &msg) const;
void evalError(const QString &msg) const
{ message(QMakeHandler::EvalError, msg); }
@@ -195,7 +195,7 @@ public:
QList<ProStringList> prepareFunctionArgs(const ushort *&tokPtr);
ProStringList evaluateFunction(const ProFunctionDef &func,
- const QList<ProStringList> &argumentsList, bool *ok);
+ const QList<ProStringList> &argumentsList, VisitReturn *ok);
VisitReturn evaluateBoolFunction(const ProFunctionDef &func,
const QList<ProStringList> &argumentsList,
const ProString &function);