From bbd58ca30b32f6015a5e7eb16884dfb9f6108f17 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Thu, 6 Jun 2019 10:57:55 +0200 Subject: Clang: Watch directories instead of files Because there a limited resources to watch files we watch now directories. So we need much less resources. Change-Id: Iac558832e9521a7a1a67c5ea99b42ad1b0b5129c Reviewed-by: Tim Jenssen --- src/libs/clangsupport/filepathcachinginterface.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/libs/clangsupport/filepathcachinginterface.h') diff --git a/src/libs/clangsupport/filepathcachinginterface.h b/src/libs/clangsupport/filepathcachinginterface.h index b9668362f7..098fd39ca9 100644 --- a/src/libs/clangsupport/filepathcachinginterface.h +++ b/src/libs/clangsupport/filepathcachinginterface.h @@ -25,6 +25,7 @@ #pragma once +#include "directorypathid.h" #include "filepath.h" #include "filepathid.h" #include "filepathview.h" @@ -40,8 +41,11 @@ public: virtual FilePathId filePathId(FilePathView filePath) const = 0; virtual FilePath filePath(FilePathId filePathId) const = 0; + virtual DirectoryPathId directoryPathId(Utils::SmallStringView directoryPath) const = 0; + virtual DirectoryPathId directoryPathId(FilePathId filePathId) const = 0; + virtual Utils::PathString directoryPath(DirectoryPathId directoryPathId) const = 0; - template + template FilePathIds filePathIds(Container &&filePaths) const { FilePathIds filePathIds; -- cgit v1.2.1