they are pretty much noise in lupdate context.
we still print error messages: the ones from the parser are always
genuine, while the ones from the evaluator are at least occasionally
helpful.
Task-number: QTBUG-28159
Change-Id: I6cdb11b51c0a3f569ec430f98a0068f933db903d
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
class EvalHandler : public QMakeHandler {
public:
virtual void message(int type, const QString &msg, const QString &fileName, int lineNo)
- { if (verbose) print(fileName, lineNo, type, msg); }
+ {
+ if (verbose && (type & CategoryMask) == ErrorMessage)
+ print(fileName, lineNo, type, msg);
+ }
virtual void fileMessage(const QString &) {}
class EvalHandler : public QMakeHandler {
public:
virtual void message(int type, const QString &msg, const QString &fileName, int lineNo)
- { if (verbose) print(fileName, lineNo, type, msg); }
+ {
+ if (verbose && (type & CategoryMask) == ErrorMessage)
+ print(fileName, lineNo, type, msg);
+ }
virtual void fileMessage(const QString &) {}