forked from qt-creator/qt-creator
Clang: Renaming fixes
Change-Id: Ied593e31acdcb234e7376858404fb82e45fad2c1 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -62,12 +62,12 @@ std::vector<Document> Documents::create(const QVector<FileContainer> &fileContai
|
||||
{
|
||||
checkIfDocumentsDoNotExist(fileContainers);
|
||||
|
||||
std::vector<Document> createdTranslationUnits;
|
||||
std::vector<Document> 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<FileContainer> &fileContainers)
|
||||
|
||||
@@ -70,7 +70,7 @@ ClangFileSystemWatcher::ClangFileSystemWatcher(Documents &documents)
|
||||
connect(&watcher,
|
||||
&QFileSystemWatcher::fileChanged,
|
||||
this,
|
||||
&ClangFileSystemWatcher::updateTranslationUnitsWithChangedDependencies);
|
||||
&ClangFileSystemWatcher::updateDocumentsWithChangedDependencies);
|
||||
}
|
||||
|
||||
void ClangFileSystemWatcher::addFiles(const QSet<Utf8String> &filePaths)
|
||||
@@ -81,7 +81,7 @@ void ClangFileSystemWatcher::addFiles(const QSet<Utf8String> &filePaths)
|
||||
watcher.addPaths(existingFiles);
|
||||
}
|
||||
|
||||
void ClangFileSystemWatcher::updateTranslationUnitsWithChangedDependencies(const QString &filePath)
|
||||
void ClangFileSystemWatcher::updateDocumentsWithChangedDependencies(const QString &filePath)
|
||||
{
|
||||
documents.updateDocumentsWithChangedDependency(filePath);
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ signals:
|
||||
void fileChanged(const Utf8String &filePath);
|
||||
|
||||
private:
|
||||
void updateTranslationUnitsWithChangedDependencies(const QString &filePath);
|
||||
void updateDocumentsWithChangedDependencies(const QString &filePath);
|
||||
|
||||
private:
|
||||
QFileSystemWatcher watcher;
|
||||
|
||||
Reference in New Issue
Block a user