aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qtsupport/profilereader.h
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-12-17 15:45:46 +0100
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-01-04 14:28:09 +0000
commit68f5420093132f37d79c223ca18db46ea687f049 (patch)
tree329f4f48ecd228d19bc5e222f685c5775d25ac9f /src/plugins/qtsupport/profilereader.h
parent33ad0f103111aa3f65c6c0736a0745db8a4ef64a (diff)
report errors from projects included by cumulative evaluation
so far, we would suppress any errors which occur during the (exact) evaluation of projects which were included only by cumulative evaluation of a parent project (see f53d37d48). this makes sense, as excluded projects are likely to fail, producing unsettling noise on the way. however, having no indication at all why a subproject failed to load is not helpful, either. so print these errors, but tag them with a prefix. note that we continue to suppress messages from the cumulative evaluation of all projects, including from the exact evaluation of .prf files done even in this mode. this is done because this output is expected to be quite noisy and unhelpful. however, it can be argued that this isn't a wise choice for projects which are known to likely fail for reasons which would not impact our ability to show (an approximation of) the project in the project explorer. for the time being, we assume that the expected errors occur later on (typically during the .prf evaluation phase due to unknown QT entries), so an unexpected error which would also affect the cumulative evaluation is displayed nonetheless. Change-Id: Idc2675744169b7cb52c0542a80075850e2b9317c Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/qtsupport/profilereader.h')
-rw-r--r--src/plugins/qtsupport/profilereader.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/qtsupport/profilereader.h b/src/plugins/qtsupport/profilereader.h
index dfdf9af140..e734c1c1f4 100644
--- a/src/plugins/qtsupport/profilereader.h
+++ b/src/plugins/qtsupport/profilereader.h
@@ -49,7 +49,7 @@ class QTSUPPORT_EXPORT ProMessageHandler : public QObject, public QMakeHandler
Q_OBJECT
public:
- ProMessageHandler(bool verbose = true);
+ ProMessageHandler(bool verbose = true, bool exact = true);
virtual ~ProMessageHandler() {}
virtual void aboutToEval(ProFile *, ProFile *, EvalFileType) {}
@@ -58,12 +58,15 @@ public:
virtual void fileMessage(int type, const QString &msg);
void setVerbose(bool on) { m_verbose = on; }
+ void setExact(bool on) { m_exact = on; }
signals:
void writeMessage(const QString &error, Core::MessageManager::PrintToOutputPaneFlags flag);
private:
bool m_verbose;
+ bool m_exact;
+ QString m_prefix;
};
class QTSUPPORT_EXPORT ProFileReader : public ProMessageHandler, public QMakeParser, public ProFileEvaluator