CMakePM: Allow usage of custom output parsers for CMake output

Fixes: QTCREATORBUG-29992
Change-Id: Ia84871cc963263c34054d17742556b38a1f1934e
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Cristian Adam
2023-12-06 15:41:02 +01:00
parent d5b3366d55
commit 6846579266
3 changed files with 31 additions and 1 deletions

View File

@@ -8,7 +8,12 @@
#include <utils/environment.h>
#include <utils/filepath.h>
namespace Utils { class MacroExpander; }
#include <functional>
namespace Utils {
class MacroExpander;
class OutputLineParser;
} // namespace Utils
namespace CMakeProjectManager::Internal {
@@ -38,6 +43,12 @@ public:
QStringList additionalCMakeArguments;
Utils::MacroExpander* expander = nullptr;
QList<Utils::OutputLineParser*> outputParsers() const;
private:
using OutputParserGenerator = std::function<QList<Utils::OutputLineParser*>()>;
OutputParserGenerator outputParserGenerator;
};
} // CMakeProjectManager::Internal