mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 23:55:08 +00:00
Do not show base calls in tree view that come from derived function.
This commit is contained in:
parent
64580decab
commit
a046f89650
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user