aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/clangrefactoringbackend/source/symbolindexing.h
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/tools/clangrefactoringbackend/source/symbolindexing.h
parent9d290fc68206ce8323c259aab099faba93f7ec83 (diff)
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/tools/clangrefactoringbackend/source/symbolindexing.h')
-rw-r--r--src/tools/clangrefactoringbackend/source/symbolindexing.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/clangrefactoringbackend/source/symbolindexing.h b/src/tools/clangrefactoringbackend/source/symbolindexing.h
index 5c391503bf..bed279904d 100644
--- a/src/tools/clangrefactoringbackend/source/symbolindexing.h
+++ b/src/tools/clangrefactoringbackend/source/symbolindexing.h
@@ -39,6 +39,7 @@
#include <projectpartsstorage.h>
#include <filepathcachingfwd.h>
+#include <filesystem.h>
#include <modifiedtimechecker.h>
#include <refactoringdatabaseinitializer.h>
@@ -142,8 +143,9 @@ private:
PrecompiledHeaderStorage<Sqlite::Database> m_precompiledHeaderStorage;
ProjectPartsStorage<Sqlite::Database> m_projectPartsStorage;
SymbolStorage m_symbolStorage;
- ClangPathWatcher<QFileSystemWatcher, QTimer> m_sourceWatcher{m_filePathCache};
- FileStatusCache m_fileStatusCache{m_filePathCache};
+ FileSystem m_fileSytem{m_filePathCache};
+ ClangPathWatcher<QFileSystemWatcher, QTimer> m_sourceWatcher{m_filePathCache, m_fileSytem};
+ FileStatusCache m_fileStatusCache{m_fileSytem};
SymbolsCollectorManager m_collectorManger;
ProgressCounter m_progressCounter;
std::function<TimeStamp(FilePathView filePath)> getModifiedTime{