Compilation database: Add information to message pane

We must tell users where we generated the file, and also inform them
about errors.

Change-Id: I6383655e2f731f41b9121b2a6a31bba551d1c1de
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Christian Kandeler
2019-03-13 17:58:06 +01:00
parent ec9d35f237
commit 3a58c4652e
4 changed files with 40 additions and 10 deletions

View File

@@ -70,7 +70,19 @@ QString diagnosticCategoryPrefixRemoved(const QString &text);
::Utils::CodeModelIcon::Type iconTypeForToken(const ClangBackEnd::TokenInfoContainer &token);
void generateCompilationDB(CppTools::ProjectInfo projectInfo);
class GenerateCompilationDbResult
{
public:
GenerateCompilationDbResult() = default;
GenerateCompilationDbResult(const QString &filePath, const QString &error)
: filePath(filePath), error(error)
{}
QString filePath;
QString error;
};
GenerateCompilationDbResult generateCompilationDB(CppTools::ProjectInfo projectInfo);
class DiagnosticTextInfo
{