From f2937c3de0fe3ff6412ae4ad81e2dfcb22a43be9 Mon Sep 17 00:00:00 2001 From: Mirek Fidler Date: Mon, 1 Aug 2022 08:09:36 +0200 Subject: [PATCH] Developing Indexer --- uppsrc/ide/clang/Visitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uppsrc/ide/clang/Visitor.cpp b/uppsrc/ide/clang/Visitor.cpp index 1f9208d9b..e2ad29c02 100644 --- a/uppsrc/ide/clang/Visitor.cpp +++ b/uppsrc/ide/clang/Visitor.cpp @@ -292,12 +292,12 @@ bool ClangVisitor::ProcessNode(CXCursor cursor) ClangCursorInfo ref_ci(q >= 0 ? tfn[q].cursor : ref, pp_id); ReferenceItem rm; - rm.pos = ref_loc.pos; + rm.pos = loc.pos; rm.id = ref_ci.Id(); Index& rd = ref_done.GetAdd(ref_loc.path); if(rm.id.GetCount() && rd.Find(rm) < 0) { rd.Add(rm); - refs.GetAdd(ref_loc.path).Add(rm); + refs.GetAdd(loc.path).Add(rm); } } return true;