mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45:08 +00:00
Show based/derived callers in callers keyboard shortcut.
This commit is contained in:
parent
57e5fe1814
commit
f4db0967b2
@ -1441,6 +1441,11 @@ bool QueryDbMainLoop(
|
|||||||
optional<QueryFunc>& func = db->funcs[ref.idx.idx];
|
optional<QueryFunc>& func = db->funcs[ref.idx.idx];
|
||||||
if (!func) continue;
|
if (!func) continue;
|
||||||
std::vector<QueryLocation> locations = ToQueryLocation(db, func->callers);
|
std::vector<QueryLocation> locations = ToQueryLocation(db, func->callers);
|
||||||
|
for (QueryFuncRef func_ref : GetCallersForAllBaseFunctions(db, *func))
|
||||||
|
locations.push_back(func_ref.loc);
|
||||||
|
for (QueryFuncRef func_ref : GetCallersForAllDerivedFunctions(db, *func))
|
||||||
|
locations.push_back(func_ref.loc);
|
||||||
|
|
||||||
response.result = GetLsLocations(db, working_files, locations);
|
response.result = GetLsLocations(db, working_files, locations);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user