After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 441228 - caller graphs and storing the address of a function
caller graphs and storing the address of a function
Status: RESOLVED OBSOLETE
Product: doxygen
Classification: Other
Component: general
1.5.2
Other All
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
[moved_to_github]
Depends on:
Blocks:
 
 
Reported: 2007-05-25 16:38 UTC by Jonathan Lynch
Modified: 2018-07-30 10:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jonathan Lynch 2007-05-25 16:38:15 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:
Comment 1 André Klapper 2018-07-30 10:13:28 UTC
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!