diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2021-02-23 13:51:41 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2021-04-22 07:32:58 +0000 |
commit | ecafdb7543927ffe8a9066ce24ed532a097fa21d (patch) | |
tree | 5f77d9fc9af3967af2bda56c052ccd4a351e0703 /src/plugins/cpptools/cppmodelmanager.h | |
parent | 8bacd9bdc49c376af69c81ac9acf2e9db1f10cb5 (diff) | |
download | qt-creator-ecafdb7543927ffe8a9066ce24ed532a097fa21d.tar.gz |
ClangCodeModel: Add experimental clangd support
If the user has enabled clangd (default is off), we start up one instance
per project when it is opened/changed (including build config switches),
and trigger background indexing.
So far, the index is used to provide results for locators and "Find
Usages".
Per-document functionality such as semantic highlighting and completion
is still provided by libclang.
Change-Id: I12532fca1b9c6278baab560e7238cba6189cde9f
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager.h')
-rw-r--r-- | src/plugins/cpptools/cppmodelmanager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.h b/src/plugins/cpptools/cppmodelmanager.h index 48c8ceabb0..1f09f9d8ed 100644 --- a/src/plugins/cpptools/cppmodelmanager.h +++ b/src/plugins/cpptools/cppmodelmanager.h @@ -60,6 +60,7 @@ class BaseEditorDocumentProcessor; class CppCompletionAssistProvider; class CppEditorDocumentHandle; class CppIndexingSupport; +class CppLocatorData; class ModelManagerSupportProvider; class FollowSymbolInterface; class SymbolFinder; @@ -111,6 +112,7 @@ public: void updateCppEditorDocuments(bool projectsUpdated = false) const; WorkingCopy workingCopy() const; QByteArray codeModelConfiguration() const; + CppLocatorData *locatorData() const; QList<ProjectInfo> projectInfos() const; ProjectInfo projectInfo(ProjectExplorer::Project *project) const; @@ -215,6 +217,7 @@ public: static void addRefactoringEngine(RefactoringEngineType type, RefactoringEngineInterface *refactoringEngine); static void removeRefactoringEngine(RefactoringEngineType type); + static RefactoringEngineInterface *builtinRefactoringEngine(); void setLocatorFilter(std::unique_ptr<Core::ILocatorFilter> &&filter); void setClassesFilter(std::unique_ptr<Core::ILocatorFilter> &&filter); |