mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 17:11:59 +00:00
Fix GetCallersForAllBaseFunctions found by romix
This commit is contained in:
parent
488f6cc962
commit
5164c4b2f6
@ -274,10 +274,11 @@ std::vector<Use> GetCallersForAllBaseFunctions(QueryDatabase* db,
|
|||||||
queue.pop();
|
queue.pop();
|
||||||
|
|
||||||
AddRange(&callers, func.uses);
|
AddRange(&callers, func.uses);
|
||||||
if (def)
|
if (const QueryFunc::Def* def1 = func.AnyDef()) {
|
||||||
EachWithGen<QueryFunc>(db->funcs, def->base, [&](QueryFunc& func1) {
|
EachWithGen<QueryFunc>(db->funcs, def1->base, [&](QueryFunc& func1) {
|
||||||
queue.push(&func1);
|
queue.push(&func1);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return callers;
|
return callers;
|
||||||
|
Loading…
Reference in New Issue
Block a user