mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 09:05:10 +00:00
[indexer] Make $cquery/base find correct overriden functions (#169)
This commit is contained in:
parent
6aefa9b114
commit
ba1ca37326
@ -1211,7 +1211,9 @@ void OnIndexDeclaration(CXClientData client_data, const CXIdxDeclInfo* decl) {
|
||||
&num_overridden);
|
||||
|
||||
for (unsigned i = 0; i < num_overridden; ++i) {
|
||||
ClangCursor parent = overridden[i];
|
||||
ClangCursor parent =
|
||||
ClangCursor(overridden[i])
|
||||
.template_specialization_to_template_definition();
|
||||
IndexFuncId parent_id = db->ToFuncId(parent.get_usr());
|
||||
IndexFunc* parent_def = db->Resolve(parent_id);
|
||||
func = db->Resolve(func_id); // ToFuncId invalidated func_def
|
||||
|
Loading…
Reference in New Issue
Block a user