New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callgraphs for C# only generated for methods inside the same class (Origin: bugzilla #731363) #5500

Closed
doxygen opened this Issue Jul 2, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@doxygen
Owner

doxygen commented Jul 2, 2018

status RESOLVED severity normal in component general for ---
Reported in version 1.8.7 on platform Other
Assigned to: Dimitri van Heesch

On 2014-06-07 15:38:31 +0000, Steffen wrote:

Original question on Stackoverflow: http://stackoverflow.com/questions/24060934/doxygen-is-not-generating-call-graphs-for-most-methods-functions

In detail: When running doxygen on a C# solution/project with graphviz installed, doxygen does not generate callgraphs for calls the leave the scope of a class. This is not a graphviz bug, since doxygen doesn't even generate the files for those calls/methods for graphviz, which shows in the logfile.

Below is an easy testcode. In theory, there should be callgraphs showing that Class1.SomeOtherPublicMethod() is called by Class2.ConstructingClass1() and Class2.CallingAllPublicsOfClass1(), the last method also calls Class1.SomePublicMethod() which should show up as/inside a callgraph.

Instead neither of the methods inside Class2 has any callgraph and the logfile shows no "Generating caller graph for function [...]" entry for those methods.

public class Class1
{
public void SomePublicMethod()
{
Refresh();
}

public void SomeOtherPublicMethod()
{
    SomePublicMethod();
}

private void SomePrivateMethod()
{
    SomeOtherPublicMethod();
    Refresh();
}

private static void Refresh()
{
}

}

public class Class2
{
private Class1 test2;
public void ConstructingClass1()
{
Class1 test = new Class1();
test.SomeOtherPublicMethod();
test2 = new Class1();
}

public void CallingAllPublicsOfClass1()
{
    test2.SomeOtherPublicMethod();
    test2.SomePublicMethod();

}

}

On 2014-06-11 13:43:19 +0000, Steffen wrote:

this was fixed by this commit SHA: 7edbf2b

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment