Do not show base calls in tree view that come from derived function.

This commit is contained in:
Jacob Dufault 2017-07-20 19:42:56 -07:00
parent 64580decab
commit a046f89650

View File

@ -763,8 +763,13 @@ NonElidedVector<Out_CqueryCallTree::CallEntry> BuildExpandCallTree(QueryDatabase
for (QueryFuncRef caller : root_func->callers) for (QueryFuncRef caller : root_func->callers)
handle_caller("", caller); handle_caller("", caller);
for (QueryFuncRef caller : base_callers) for (QueryFuncRef caller : base_callers) {
// Do not show calls to the base function coming from this function.
if (caller.id_ == root)
continue;
handle_caller("[B] ", caller); handle_caller("[B] ", caller);
}
for (QueryFuncRef caller : derived_callers) for (QueryFuncRef caller : derived_callers)
handle_caller("[D] ", caller); handle_caller("[D] ", caller);