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();
}