ClangCodeModel: Start a fallback clangd for files without a project

These were still being served by the old code model even when clangd
support was enabled.

Change-Id: I5f01b6a7071b90c374750f93435299755cabe3e9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2021-07-14 17:07:34 +02:00
parent 2e7891bedd
commit c999b6066f
4 changed files with 81 additions and 19 deletions

View File

@@ -131,6 +131,7 @@ private:
void updateLanguageClient(ProjectExplorer::Project *project,
const CppTools::ProjectInfo &projectInfo);
ClangdClient *createClient(ProjectExplorer::Project *project, const Utils::FilePath &jsonDbDir);
void claimNonProjectSources(ClangdClient *fallbackClient);
private:
UiHeaderOnDiskManager m_uiHeaderOnDiskManager;