logic: refresh info generator fixes and tests

* fixed case where "to-index" state of a file has changed and thus the file needs to be re-indexed
* clear and re-index files that depend on changed non-indexed files
* clear and re-index files referenced by unchanged but cleared (due to referencing a changed file) files
* fixed: updated files with changed timestamp that do not have content in the db will now count as changed
* refined refresh info generator tests
* updated checklists for manual project setup tests
This commit is contained in:
mlangkabel
2018-09-14 16:02:01 +02:00
parent 5b7938eda6
commit 5517cd4ccf
10 changed files with 604 additions and 173 deletions
+2 -1
View File
@@ -66,7 +66,7 @@ public:
void clearAllErrors();
void clearFileElements(const std::vector<FilePath>& filePaths, std::function<void(int)> updateStatusCallback);
std::vector<FileInfo> getFileInfoForAllIndexedFiles() const;
std::vector<FileInfo> getFileInfoForAllFiles() const;
std::set<FilePath> getIncompleteFiles() const;
bool getFilePathIndexed(const FilePath& path) const;
@@ -119,6 +119,7 @@ public:
std::shared_ptr<SourceLocationFile> getCommentLocationsInFile(const FilePath& filePath) const override;
std::shared_ptr<TextAccess> getFileContent(const FilePath& filePath) const override;
bool hasContentForFile(const FilePath& filePath) const;
FileInfo getFileInfoForFileId(Id id) const override;