ClangCodeModel: Provide source of diagnostics in tooltip

It's helpful to know whether a particular issue came from clangd,
libclang, or somewhere else.

Change-Id: I9e00d79ffe630a91028c2aeff219571e9979dbee
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2021-10-12 13:44:35 +02:00
parent 1b16eb209c
commit c92deea33f
4 changed files with 23 additions and 11 deletions

View File

@@ -48,7 +48,8 @@ public:
static QWidget *createWidget(const QVector<ClangBackEnd::DiagnosticContainer> &diagnostics,
const Destination &destination,
const std::function<bool()> &canApplyFixIt);
const std::function<bool()> &canApplyFixIt,
const QString &source);
};
} // namespace Internal