forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
@@ -81,6 +81,11 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void insertOrUpdateUsedDefines(const UsedDefines &usedDefines) override
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void updateProjectPartSources(Utils::SmallStringView projectPartName,
|
||||
const FilePathIds &sourceFilePathIds) override
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user