forked from qt-creator/qt-creator
Clang: Minimize reindexing
We optimal indexer is only reindexing if the index would be changed. This patch is a step in that direction. We only reindex now if the file or project has changed. It fixes some typos too. Task-number: QTCREATORBUG-21150 Change-Id: I6ea1c13282fbcd70253b9b2939aed37580dbd160 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -57,7 +57,7 @@ protected:
|
||||
ClangBackEnd::FilePathCaching filePathCache{database};
|
||||
decltype(getModifiedTimeCallback.AsStdFunction()) callback = getModifiedTimeCallback
|
||||
.AsStdFunction();
|
||||
ClangBackEnd::ModifiedTimeChecker checker{callback, filePathCache};
|
||||
ClangBackEnd::ModifiedTimeChecker<> checker{callback, filePathCache};
|
||||
SourceEntries upToDateEntries = {{id("/path1"), SourceType::UserInclude, 100},
|
||||
{id("/path2"), SourceType::SystemInclude, 30}};
|
||||
SourceEntries notUpToDateEntries = {{id("/path1"), SourceType::UserInclude, 50},
|
||||
|
||||
Reference in New Issue
Block a user