forked from qt-creator/qt-creator
ClangCodeModel: Provide diagnostics via clangd
Change-Id: Ib45a62ebe200c2b56a1bb1a66f8a92103e60d092 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -78,6 +78,8 @@ signals:
|
||||
void findUsagesDone();
|
||||
|
||||
private:
|
||||
void handleDiagnostics(const LanguageServerProtocol::PublishDiagnosticsParams ¶ms) override;
|
||||
|
||||
class Private;
|
||||
class FollowSymbolData;
|
||||
class VirtualFunctionAssistProcessor;
|
||||
@@ -85,5 +87,13 @@ private:
|
||||
Private * const d;
|
||||
};
|
||||
|
||||
class ClangdDiagnostic : public LanguageServerProtocol::Diagnostic
|
||||
{
|
||||
public:
|
||||
using Diagnostic::Diagnostic;
|
||||
Utils::optional<QList<LanguageServerProtocol::CodeAction>> codeActions() const;
|
||||
QString category() const;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace ClangCodeModel
|
||||
|
||||
Reference in New Issue
Block a user