diff --git a/src/tools/clangbackend/ipcsource/clangcodemodelserver.cpp b/src/tools/clangbackend/ipcsource/clangcodemodelserver.cpp index ed30fafb55e..240f3a98209 100644 --- a/src/tools/clangbackend/ipcsource/clangcodemodelserver.cpp +++ b/src/tools/clangbackend/ipcsource/clangcodemodelserver.cpp @@ -113,12 +113,12 @@ void ClangCodeModelServer::registerTranslationUnitsForEditor(const ClangBackEnd: TIME_SCOPE_DURATION("ClangCodeModelServer::registerTranslationUnitsForEditor"); try { - auto createdTranslationUnits = documents.create(message.fileContainers()); + auto createdDocuments = documents.create(message.fileContainers()); unsavedFiles.createOrUpdate(message.fileContainers()); documents.setUsedByCurrentEditor(message.currentEditorFilePath()); documents.setVisibleInEditors(message.visibleEditorFilePaths()); - processInitialJobsForDocuments(createdTranslationUnits); + processInitialJobsForDocuments(createdDocuments); } catch (const ProjectPartDoNotExistException &exception) { client()->projectPartsDoNotExist(ProjectPartsDoNotExistMessage(exception.projectPartIds())); } catch (const std::exception &exception) { diff --git a/src/tools/clangbackend/ipcsource/clangdocuments.cpp b/src/tools/clangbackend/ipcsource/clangdocuments.cpp index 1903760b237..6ef54523356 100644 --- a/src/tools/clangbackend/ipcsource/clangdocuments.cpp +++ b/src/tools/clangbackend/ipcsource/clangdocuments.cpp @@ -62,12 +62,12 @@ std::vector Documents::create(const QVector &fileContai { checkIfDocumentsDoNotExist(fileContainers); - std::vector createdTranslationUnits; + std::vector createdDocuments; for (const FileContainer &fileContainer : fileContainers) - createdTranslationUnits.push_back(createDocument(fileContainer)); + createdDocuments.push_back(createDocument(fileContainer)); - return createdTranslationUnits; + return createdDocuments; } void Documents::update(const QVector &fileContainers) diff --git a/src/tools/clangbackend/ipcsource/clangfilesystemwatcher.cpp b/src/tools/clangbackend/ipcsource/clangfilesystemwatcher.cpp index 10b586b8824..a51676abe0f 100644 --- a/src/tools/clangbackend/ipcsource/clangfilesystemwatcher.cpp +++ b/src/tools/clangbackend/ipcsource/clangfilesystemwatcher.cpp @@ -70,7 +70,7 @@ ClangFileSystemWatcher::ClangFileSystemWatcher(Documents &documents) connect(&watcher, &QFileSystemWatcher::fileChanged, this, - &ClangFileSystemWatcher::updateTranslationUnitsWithChangedDependencies); + &ClangFileSystemWatcher::updateDocumentsWithChangedDependencies); } void ClangFileSystemWatcher::addFiles(const QSet &filePaths) @@ -81,7 +81,7 @@ void ClangFileSystemWatcher::addFiles(const QSet &filePaths) watcher.addPaths(existingFiles); } -void ClangFileSystemWatcher::updateTranslationUnitsWithChangedDependencies(const QString &filePath) +void ClangFileSystemWatcher::updateDocumentsWithChangedDependencies(const QString &filePath) { documents.updateDocumentsWithChangedDependency(filePath); diff --git a/src/tools/clangbackend/ipcsource/clangfilesystemwatcher.h b/src/tools/clangbackend/ipcsource/clangfilesystemwatcher.h index 8d14be153ec..549870eab00 100644 --- a/src/tools/clangbackend/ipcsource/clangfilesystemwatcher.h +++ b/src/tools/clangbackend/ipcsource/clangfilesystemwatcher.h @@ -47,7 +47,7 @@ signals: void fileChanged(const Utf8String &filePath); private: - void updateTranslationUnitsWithChangedDependencies(const QString &filePath); + void updateDocumentsWithChangedDependencies(const QString &filePath); private: QFileSystemWatcher watcher;