Clang: Update or insert used defines in the storage by the symbol indexer

Change-Id: Id8af85976be391e17886c9947863b81d206bb575
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Marco Bubke
2018-01-23 18:08:17 +01:00
parent 30143650b0
commit 8a280129ff
5 changed files with 23 additions and 0 deletions

View File

@@ -68,6 +68,8 @@ void SymbolIndexer::updateProjectPart(V2::ProjectPartContainer &&projectPart,
m_symbolStorage.updateProjectPartSources(projectPart.projectPartId(),
m_symbolsCollector.sourceFiles());
m_symbolStorage.insertOrUpdateUsedDefines(m_symbolsCollector.usedDefines());
transaction.commit();
}

View File

@@ -81,6 +81,11 @@ public:
}
}
void insertOrUpdateUsedDefines(const UsedDefines &usedDefines) override
{
}
void updateProjectPartSources(Utils::SmallStringView projectPartName,
const FilePathIds &sourceFilePathIds) override
{

View File

@@ -28,6 +28,7 @@
#include "projectpartentry.h"
#include "sourcelocationentry.h"
#include "symbolentry.h"
#include "useddefines.h"
#include <sqlitetransaction.h>
@@ -47,6 +48,7 @@ public:
const Utils::SmallStringVector &commandLineArguments) = 0;
virtual void updateProjectPartSources(Utils::SmallStringView projectPartName,
const FilePathIds &sourceFilePathIds) = 0;
virtual void insertOrUpdateUsedDefines(const UsedDefines &usedDefines) = 0;
};
} // namespace ClangBackEnd