Show based/derived callers in callers keyboard shortcut.

This commit is contained in:
Jacob Dufault 2017-07-19 00:11:16 -07:00
parent 57e5fe1814
commit f4db0967b2

View File

@ -1441,6 +1441,11 @@ bool QueryDbMainLoop(
optional<QueryFunc>& func = db->funcs[ref.idx.idx];
if (!func) continue;
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);
}
}