From f4db0967b2c28e1a0fa1c59141571501598a1caf Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Wed, 19 Jul 2017 00:11:16 -0700 Subject: [PATCH] Show based/derived callers in callers keyboard shortcut. --- src/command_line.cc | 5 +++++ 1 file changed, 5 insertions(+) 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); } }