Clang: Update ModifiedTimeChecker in SymbolIndexer

If a watched file changed we should update the ModifiedTimeChecker too.

Change-Id: Ie43f5cf5b6dd4ddb1383168a1326add21f6e3e9d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2019-06-17 18:17:49 +02:00
parent bbd58ca30b
commit cbfd9dc16b
6 changed files with 19 additions and 4 deletions

View File

@@ -35,6 +35,7 @@ class MockSourceEntriesModifiedTimeChecker
public:
MOCK_CONST_METHOD1(isUpToDate,
bool (const ClangBackEnd::SourceEntries &sourceEntries));
MOCK_METHOD1(pathsChanged, void(const ClangBackEnd::FilePathIds &filePathIds));
};
class MockSourceTimeStampsModifiedTimeChecker
@@ -42,4 +43,5 @@ class MockSourceTimeStampsModifiedTimeChecker
{
public:
MOCK_CONST_METHOD1(isUpToDate, bool(const ClangBackEnd::SourceTimeStamps &sourceTimeStamps));
MOCK_METHOD1(pathsChanged, void(const ClangBackEnd::FilePathIds &filePathIds));
};