ClangCodeModel: Support parse contexts with clangd

Fixes: QTCREATORBUG-27009
Change-Id: I177db0658d545211b940623cae071db91e82ddb4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2022-02-08 11:49:37 +01:00
parent 959e2b0124
commit 6ede8b3bc0
6 changed files with 90 additions and 3 deletions

View File

@@ -91,6 +91,7 @@ public:
void editorDocumentTimerRestarted() override;
void setParserConfig(const CppEditor::BaseEditorDocumentParser::Configuration &config) override;
CppEditor::BaseEditorDocumentParser::Configuration parserConfig() const;
QFuture<CppEditor::CursorInfo> cursorInfo(const CppEditor::CursorInfoParams &params) override;
QFuture<CppEditor::CursorInfo> requestLocalReferences(const QTextCursor &cursor) override;
@@ -115,6 +116,8 @@ public:
signals:
void tokenInfosUpdated();
void parserConfigChanged(const Utils::FilePath &filePath,
const CppEditor::BaseEditorDocumentParser::Configuration &config);
private:
void onParserFinished();