ClangCodeModel: Use clangd for completion and function hint

Change-Id: I80160f3a40da18ac178682afe6caba5e5af6e3eb
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2021-06-18 16:30:03 +02:00
parent 67d2a4186b
commit e0e8fda580
62 changed files with 1569 additions and 187 deletions

View File

@@ -36,7 +36,7 @@
namespace Core { class SearchResultItem; }
namespace CppTools { class CppEditorWidgetInterface; }
namespace ProjectExplorer { class Project; }
namespace TextEditor { class TextDocument; }
namespace TextEditor { class BaseTextEditor; }
namespace ClangCodeModel {
namespace Internal {
@@ -52,6 +52,8 @@ public:
QVersionNumber versionNumber() const;
CppTools::ClangdSettings::Data settingsData() const;
void openEditorDocument(TextEditor::BaseTextEditor *editor);
void openExtraFile(const Utils::FilePath &filePath, const QString &content = {});
void closeExtraFile(const Utils::FilePath &filePath);
@@ -83,7 +85,9 @@ signals:
void foundReferences(const QList<Core::SearchResultItem> &items);
void findUsagesDone();
void helpItemGathered(const Core::HelpItem &helpItem);
void highlightingResultsReady(const TextEditor::HighlightingResults &results);
void highlightingResultsReady(const TextEditor::HighlightingResults &results,
const Utils::FilePath &file);
void proposalReady(TextEditor::IAssistProposal *proposal);
private:
void handleDiagnostics(const LanguageServerProtocol::PublishDiagnosticsParams &params) override;