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 527049 - Caller and Call Graph Functions are incorrectly recursive
Caller and Call Graph Functions are incorrectly recursive
Status: RESOLVED OBSOLETE
Product: doxygen
Classification: Other
Component: general
1.5.5
Other All
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
[moved_to_github]
Depends on:
Blocks:
 
 
Reported: 2008-04-09 01:17 UTC by Josh
Modified: 2018-07-30 10:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample project with source files and pregenerated output (28.00 KB, application/x-compressed-tar)
2008-04-09 01:18 UTC, Josh
Details
Call graph does not show recursive functions. (175.27 KB, application/zip)
2014-06-14 16:57 UTC, Cornelius
Details

Description Josh 2008-04-09 01:17:07 UTC
Please describe the problem:
The DOT "call" and "caller" graphs that are generated show functions incorrectly calling themselves. The attached tar file shows a simple example. The problem seems to be correctable by turning on EXTRACT_ALL or by adding the /**@file*/ tag to the provided 'src/source.c' file. 
However, this example project was reduced from a larger project, in which only turning on EXTRACT_ALL fixes the problem. 

Steps to reproduce:
1. extract the tar file
2. view doc/html/d2/ddc/test_8h.html
3. turn on EXTRACT_ALL or add the /**@file*/ header to the file 'src/source.c'
4. run doxygen, view doc/html/d2/ddc/test_8h.html, problem corrected


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Josh 2008-04-09 01:18:13 UTC
Created attachment 108899 [details]
sample project with source files and pregenerated output
Comment 2 Cornelius 2014-06-14 16:56:04 UTC
The bug is still open in DoxyGen Version 1.8.7
Here is on additional example:
-------------------
void tic() 
{
    tac();
}
void tac() 
{
    toc();
}
void toc() 
{
    tic();
}

int fact(int n)
{    
    int x=1;    

    while(n>1)    
    {    
        x=n*fact(n-1);    
    }    

    return(x);    
}    

void main() 
{
 	fact(5);
	tic();

}
Comment 3 Cornelius 2014-06-14 16:57:04 UTC
Created attachment 278449 [details]
Call graph does not show recursive functions.
Comment 4 André Klapper 2018-07-30 10:21:32 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!