diff --git a/src/command_line.cc b/src/command_line.cc index 507e16c7..bf872070 100644 --- a/src/command_line.cc +++ b/src/command_line.cc @@ -1441,6 +1441,11 @@ bool QueryDbMainLoop( optional& func = db->funcs[ref.idx.idx]; if (!func) continue; std::vector 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); } }