forked from qt-creator/qt-creator
CMake: Move error and warning handling
... from CMakeBuildConfiguration to CMakeBuildSystem. Less back-and-forth this way. Also, prefer plain buildConfiguration() over cmakeBuildConfiguration() back-pointers. Change-Id: Ie1341302ecc10e53d71ca68b7b6eb5f46cfdad5f Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -108,10 +108,19 @@ public:
|
||||
|
||||
CMakeProject *project() const;
|
||||
|
||||
QString error() const;
|
||||
QString warning() const;
|
||||
|
||||
signals:
|
||||
void configurationCleared();
|
||||
|
||||
private:
|
||||
enum ForceEnabledChanged { False, True };
|
||||
void clearError(ForceEnabledChanged fec = ForceEnabledChanged::False);
|
||||
|
||||
void setError(const QString &message);
|
||||
void setWarning(const QString &message);
|
||||
|
||||
// Actually ask for parsing:
|
||||
enum ReparseParameters {
|
||||
REPARSE_DEFAULT = 0, // Nothing special:-)
|
||||
@@ -188,6 +197,9 @@ private:
|
||||
Utils::FilePath m_ctestPath;
|
||||
QList<ProjectExplorer::TestCaseInfo> m_testNames;
|
||||
Utils::FutureSynchronizer m_futureSynchronizer;
|
||||
|
||||
QString m_error;
|
||||
QString m_warning;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user