mirror of
https://github.com/MaskRay/ccls.git
synced 2025-03-30 13:32:13 +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());
|
ref_index->uses.push_back(ref_cursor.get_spelling_range());
|
||||||
|
|
||||||
ClangType ref_type = clang_getCursorType(ref_cursor.cx_cursor);
|
ClangType ref_type = clang_getCursorType(ref_cursor.cx_cursor);
|
||||||
IndexType* ref_type_index =
|
if (ref_type.get_usr().size()) {
|
||||||
db->Resolve(db->ToTypeId(ref_type.get_usr()));
|
IndexType* ref_type_index =
|
||||||
ref_type_index->uses.push_back(ref_cursor.get_spelling_range());
|
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());
|
UniqueAdd(ref_index->uses, cursor.get_spelling_range());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user