aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/clangrefactoringbackend/source/symbolstorage.h
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2018-04-09 13:30:30 +0200
committerMarco Bubke <marco.bubke@qt.io>2018-04-12 13:12:24 +0000
commit4b0bcbdcb6b28e806de4ba31fa5fecd06fd9188e (patch)
tree14acb63657252b111007330cc3568ee063f3cb8e /src/tools/clangrefactoringbackend/source/symbolstorage.h
parent18de1e3fcf4bc2715636c8f69b29e6177bcd552b (diff)
Clang: Locator filter for the symbol database
There are no symbol queries for the locator filters. The signature generation is still not implemented but for simple cases it should work. Change-Id: Ic6b04fbe1e7e057892f194ac139615c47d6ec33f Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/tools/clangrefactoringbackend/source/symbolstorage.h')
-rw-r--r--src/tools/clangrefactoringbackend/source/symbolstorage.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/tools/clangrefactoringbackend/source/symbolstorage.h b/src/tools/clangrefactoringbackend/source/symbolstorage.h
index 9c307a8664a..dccc8f06fbe 100644
--- a/src/tools/clangrefactoringbackend/source/symbolstorage.h
+++ b/src/tools/clangrefactoringbackend/source/symbolstorage.h
@@ -210,11 +210,12 @@ public:
{
WriteStatement &statement = m_statementFactory.insertLocationsToNewLocationsStatement;
- for (const auto &locationsEntry : sourceLocations) {
- statement.write(locationsEntry.symbolId,
- locationsEntry.lineColumn.line,
- locationsEntry.lineColumn.column,
- locationsEntry.filePathId.filePathId);
+ for (const auto &locationEntry : sourceLocations) {
+ statement.write(locationEntry.symbolId,
+ locationEntry.lineColumn.line,
+ locationEntry.lineColumn.column,
+ locationEntry.filePathId.filePathId,
+ int(locationEntry.kind));
}
}