mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45:08 +00:00
[template] Index template parameter references
This commit is contained in:
parent
f86de0b544
commit
d7d8b820ac
@ -1066,6 +1066,15 @@ ClangCursor::VisitResult TemplateVisitor(ClangCursor cursor,
|
||||
}
|
||||
break;
|
||||
}
|
||||
case CXCursor_TypeRef: {
|
||||
ClangCursor ref_cursor = clang_getCursorReferenced(cursor.cx_cursor);
|
||||
if (ref_cursor.get_kind() == CXCursor_TemplateTypeParameter) {
|
||||
IndexType* ref_index =
|
||||
data->db->Resolve(data->db->ToTypeId(ref_cursor.get_usr()));
|
||||
UniqueAdd(ref_index->uses, ResolveSpelling(cursor.cx_cursor));
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return ClangCursor::VisitResult::Continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user