summaryrefslogtreecommitdiff
path: root/src/libs/clangsupport/filepathcaching.cpp
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2019-06-06 10:57:55 +0200
committerMarco Bubke <marco.bubke@qt.io>2019-06-27 12:31:52 +0000
commitbbd58ca30b32f6015a5e7eb16884dfb9f6108f17 (patch)
tree8f50bd05c6953797a1f73c6938925742284b24bc /src/libs/clangsupport/filepathcaching.cpp
parent9d290fc68206ce8323c259aab099faba93f7ec83 (diff)
downloadqt-creator-bbd58ca30b32f6015a5e7eb16884dfb9f6108f17.tar.gz
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 <tim.jenssen@qt.io>
Diffstat (limited to 'src/libs/clangsupport/filepathcaching.cpp')
-rw-r--r--src/libs/clangsupport/filepathcaching.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libs/clangsupport/filepathcaching.cpp b/src/libs/clangsupport/filepathcaching.cpp
index 0a3fc6ee41..372ed86bd3 100644
--- a/src/libs/clangsupport/filepathcaching.cpp
+++ b/src/libs/clangsupport/filepathcaching.cpp
@@ -37,4 +37,19 @@ FilePath FilePathCaching::filePath(FilePathId filePathId) const
return m_cache.filePath(filePathId);
}
+DirectoryPathId FilePathCaching::directoryPathId(Utils::SmallStringView directoryPath) const
+{
+ return m_cache.directoryPathId(directoryPath);
+}
+
+Utils::PathString FilePathCaching::directoryPath(DirectoryPathId directoryPathId) const
+{
+ return m_cache.directoryPath(directoryPathId);
+}
+
+DirectoryPathId FilePathCaching::directoryPathId(FilePathId filePathId) const
+{
+ return m_cache.directoryPathId(filePathId);
+}
+
} // namespace ClangBackEnd