mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-31 09:50:26 +00:00
Fix non-type template parameter
This commit is contained in:
parent
29345f067c
commit
34aac56ff0
@ -1040,9 +1040,11 @@ ClangCursor::VisitResult TemplateVisitor(ClangCursor cursor,
|
||||
ref_index->uses.push_back(ref_cursor.get_spelling_range());
|
||||
|
||||
ClangType ref_type = clang_getCursorType(ref_cursor.cx_cursor);
|
||||
IndexType* ref_type_index =
|
||||
db->Resolve(db->ToTypeId(ref_type.get_usr()));
|
||||
ref_type_index->uses.push_back(ref_cursor.get_spelling_range());
|
||||
if (ref_type.get_usr().size()) {
|
||||
IndexType* ref_type_index =
|
||||
db->Resolve(db->ToTypeId(ref_type.get_usr()));
|
||||
ref_type_index->uses.push_back(ref_cursor.get_spelling_range());
|
||||
}
|
||||
}
|
||||
UniqueAdd(ref_index->uses, cursor.get_spelling_range());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user