GNOME Bugzilla – Bug 441228
caller graphs and storing the address of a function
Last modified: 2018-07-30 10:13:28 UTC
Please describe the problem: When the address of a function is accessed (note: function is not called) and stored in a table eg. void *funcPtr = func; void func() { } Doxygen in the call graph, assumes that the function has actually been called. But in fact just the address of the function has been saved. Steps to reproduce: Use the following code to generate the call graph. /** * @file doxy.c * @defgroup test Test * @ingroup test */ #include <stdio.h> /** @ingroup test * function test * * @param void */ void func(void); /** @ingroup test */ int main() { void *val=func; return 0; } void func() { printf("I was called\n"); return; } Actual results: there is an arrow from main -> func when func has not been called. Expected results: no arrow to be present. Does this happen every time? yes. Other information:
As discussed in https://github.com/doxygen/doxygen/pull/734 , Doxygen has moved its issue tracking to https://github.com/doxygen/doxygen/issues All Doxygen tickets in GNOME Bugzilla have been migrated to Github. You can subscribe and participate in the new ticket in Github. You can find the corresponding Github ticket by searching for its Bugzilla ID (number) in Github. Hence I am closing this GNOME Bugzilla ticket. Please use the corresponding ticket in Github instead. Thanks a lot!