Questions tagged [call-hierarchy]

Call Hierarchy enables you to navigate through your code by displaying all calls to and from a selected method, property, or constructor. This enables you to better understand how code flows and to evaluate the effects of changes to code. You can examine several levels of code to view complex chains of method calls and additional entry points to the code, which enables you to explore all possible execution paths.

50 questions
1
vote
0 answers

Call Hierarchy of a method programatically not using eclipse shortcut

I saw a similar post from one of the page of stackoverflow Using Search Engine to implement call hierarchy (getting all the methods that invoke a certain method) in Java/eclipse But the code on usage holds a method findMethod. What is type in that…
1
vote
1 answer

Spring boot function stack context

Is there any way I can create, lets say a Context, and depending on the function stack know in what context I am in and retrieve values out of it? e.g.: Request comes into Controller (Contains requestId in header). Controller calls function from…
Ferdi K
  • 31
  • 2
1
vote
0 answers

Does ccls supports a project-wide call hierachy?

Nowadays I'm trying to adapt new popular features called LSP(language Server Protocol) into my emacs. In the middle of that I found that some of those language server like as ccls, cquery can support a feature "call hierarchy". But I wonder whether…
windrg00
  • 457
  • 3
  • 9
1
vote
1 answer

Eclipse Neon.3 change colors in type hierarchy/call hierarchy

Is it possible to change the font colors in the type/call hierarchy? Working with C++ Code including several namespaces like a::b::c::d::e::atlastmymethodname() : type it is hard to determine quickly the name of the method if namespaces and method…
bambino307
  • 493
  • 2
  • 4
  • 13
1
vote
3 answers

Invoking call hierarchy from eclipse plug in

I want to write an eclipse plugin which can take a list of class names and return me a table of classes where they are being referenced in a given project. I was thinking if i can use eclipse cal hierarchy. But not sure how to invoke this command.…
Ravisha
  • 3,261
  • 9
  • 39
  • 66
1
vote
0 answers

Search specific call tree in call hierarchy result?

If I search the call hierarchy of any method(method_A) in eclipse, I get more than 100 references. I want to search specific call tree in this result where method_A is called by a specific method (method_Z), how can I do that? At present, I need to…
user3198603
  • 5,528
  • 13
  • 65
  • 125
1
vote
1 answer

Resharper event invocation chain heirarchy?

Let's say I have a C# event called EventX. I want to see a tree of all code paths that result in that event being invoked, including methods that invoke the event, other events that are handled by those methods, etc, multiple layers…
JoeMjr2
  • 3,804
  • 4
  • 34
  • 62
1
vote
1 answer

Java design pattern: Enforce calling methods of all supertypes

Introduction: I've built a class hierarchy for database filters: class Filter { } class PropertyFilter extends Filter { Boolean exists; T equal; } class ComparableFilter extends PropertyFilter { T greaterThan; T lessThan; } This…
Benjamin M
  • 23,599
  • 32
  • 121
  • 201
1
vote
2 answers

Finding all methods that uses a specific method directly or indirectly in native c++

Is there any tool for discovering all direct or indirect method usage for a specific method in c++. For managed classes NDepend does the job "Select method that are using me", however I am struggled how to do it in native classes. Visual Studio's…
pappati
  • 171
  • 1
  • 9
0
votes
0 answers

Recursive behavior of call hierarchy on EXPORT_SYMBOL in clangd extension when developing Linux kernel using vscode

I am a Linux kernel developer. I am using clangd extension to use Call hierarchy in Vscode. I created compile_commands.py using scripts/gen_compile_commands.py and it worked fine. I am using the Call hierarchy function as desired. However, I am not…
ShooBear
  • 1
  • 2
0
votes
1 answer

PHP Call Hierarchy in Visual Studio Code?

I'm trying to figure out if there is a way to display a PHP classes structure within Visual Studio Code. So if I have a class which consist of a constructor and 5 methods, I'm looking for a panel which lists that constructor and those 5 methods with…
d.lanza38
  • 2,525
  • 7
  • 30
  • 52
0
votes
0 answers

Command handler 'Call Hierarchy' has exceeded allotted timeout and was auto canceled

I'm working with Visual Studio 2022 on a Docker application in C# and when I try to get the call hierarchy first I get in an endless loop, and after having pressed the "Cancel" button I get the error message, mentioned in the title. I already…
Dominique
  • 16,450
  • 15
  • 56
  • 112
0
votes
1 answer

pycparser retrieving function call hierarchy

is there a way to get the function call stack with pycparser ? for example if i have code like this: static int Func_1(int *val) { unsigned int data_1 = 0; int result; result = Func_2(val, data_1 …
friggler
  • 177
  • 2
  • 14
0
votes
0 answers

Pycharm Call Hierarchy for functions imported from module in project

The call hierarchy functionality in Pycharm is useful for finding where a function is called but also which functions are called by a particular function. I am using the latter, but when I do this I only see the functions in the current module. For…
pbreach
  • 16,049
  • 27
  • 82
  • 120
0
votes
0 answers

extend 'call hierarchy' in eclipse

Is there any way to extend the tree, that is generated by the 'call hierarchy plugin'? After a first look I did not find one. background: I would like to add some xml-parsing to find references on constants of some special classes.
Sammy
  • 1,178
  • 1
  • 14
  • 27