aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/clangpchmanagerbackend/source/builddependenciesstorageinterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clangpchmanagerbackend/source/builddependenciesstorageinterface.h')
-rw-r--r--src/tools/clangpchmanagerbackend/source/builddependenciesstorageinterface.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/tools/clangpchmanagerbackend/source/builddependenciesstorageinterface.h b/src/tools/clangpchmanagerbackend/source/builddependenciesstorageinterface.h
index 445afa052f2..4edc47fce1b 100644
--- a/src/tools/clangpchmanagerbackend/source/builddependenciesstorageinterface.h
+++ b/src/tools/clangpchmanagerbackend/source/builddependenciesstorageinterface.h
@@ -33,6 +33,8 @@
#include <sourcedependency.h>
#include <usedmacro.h>
+#include <utils/optional.h>
+
namespace ClangBackEnd {
class BuildDependenciesStorageInterface
@@ -42,13 +44,20 @@ public:
BuildDependenciesStorageInterface(const BuildDependenciesStorageInterface &) = delete;
BuildDependenciesStorageInterface &operator=(const BuildDependenciesStorageInterface &) = delete;
- virtual void updateSources(const SourceEntries &sourceIds) = 0;
+ virtual void insertOrUpdateSources(const SourceEntries &sourceIds,
+ int projectPartId) = 0;
virtual void insertOrUpdateUsedMacros(const UsedMacros &usedMacros) = 0;
- virtual void insertFileStatuses(const FileStatuses &fileStatuses) = 0;
+ virtual void
+ insertOrUpdateFileStatuses(const FileStatuses &fileStatuses) = 0;
virtual void insertOrUpdateSourceDependencies(const SourceDependencies &sourceDependencies) = 0;
virtual long long fetchLowestLastModifiedTime(FilePathId sourceId) const = 0;
- virtual SourceEntries fetchDependSources(FilePathId sourceId, Utils::SmallStringView projectPartId) const = 0;
+ virtual SourceEntries fetchDependSources(FilePathId sourceId,
+ int projectPartId) const = 0;
virtual UsedMacros fetchUsedMacros(FilePathId sourceId) const = 0;
+ virtual int fetchProjectPartId(Utils::SmallStringView projectPartName) = 0;
+ virtual void updatePchCreationTimeStamp(long long pchCreationTimeStamp,
+ Utils::SmallStringView projectPartName)
+ = 0;
protected:
~BuildDependenciesStorageInterface() = default;