diff options
Diffstat (limited to 'clangd/ClangdUnitStore.cpp')
-rw-r--r-- | clangd/ClangdUnitStore.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clangd/ClangdUnitStore.cpp b/clangd/ClangdUnitStore.cpp index c92ae59a..402fa4ba 100644 --- a/clangd/ClangdUnitStore.cpp +++ b/clangd/ClangdUnitStore.cpp @@ -41,13 +41,14 @@ CppFileCollection::recreateFileIfCompileCommandChanged( It = OpenedFiles .try_emplace(File, CppFile::Create(File, std::move(NewCommand), StorePreamblesInMemory, - std::move(PCHs))) + std::move(PCHs), ASTCallback)) .first; } else if (!compileCommandsAreEqual(It->second->getCompileCommand(), NewCommand)) { Result.RemovedFile = std::move(It->second); - It->second = CppFile::Create(File, std::move(NewCommand), - StorePreamblesInMemory, std::move(PCHs)); + It->second = + CppFile::Create(File, std::move(NewCommand), StorePreamblesInMemory, + std::move(PCHs), ASTCallback); } Result.FileInCollection = It->second; return Result; |