forked from qt-creator/qt-creator
Clang: Optimize file path cache
We now fetch all directories and sources from the database at file path cache creation. Change-Id: I92510b49a234128f4c82b840611db82ead3f1a54 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -42,7 +42,7 @@ namespace ClangBackEnd {
|
||||
class SymbolsCollector final : public SymbolsCollectorInterface
|
||||
{
|
||||
public:
|
||||
SymbolsCollector(Sqlite::Database &database);
|
||||
SymbolsCollector(FilePathCaching &filePathCache);
|
||||
|
||||
void addFiles(const FilePathIds &filePathIds,
|
||||
const Utils::SmallStringVector &arguments);
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
bool isClean() const { return m_clangTool.isClean(); }
|
||||
|
||||
private:
|
||||
FilePathCaching m_filePathCache;
|
||||
CopyableFilePathCaching m_filePathCache;
|
||||
ClangTool m_clangTool;
|
||||
SymbolEntries m_symbolEntries;
|
||||
SourceLocationEntries m_sourceLocationEntries;
|
||||
|
||||
Reference in New Issue
Block a user