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 509348 - A function description is distributed between the source and its header file
A function description is distributed between the source and its header file
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.5.4
Other Windows
: Normal blocker
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2008-01-14 12:19 UTC by Sergey
Modified: 2009-08-20 10:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The test case to reproduce the problem (88.55 KB, application/octet-stream)
2008-01-14 12:25 UTC, Sergey
Details

Description Sergey 2008-01-14 12:19:02 UTC
C language project

A function call graph and references are put into the header file (where the function prototype with or without 'extern' keyword is located), while the caller graph and referenced by sections are put into the source file with the function definition.
I haven't found any properties to influence on this behavior and consider this as a bug. 

Moreover, before the header file was created, the function call graph was put into another source file where the function is used (called), but not defined.

It is possible to provide an example to reproduce the problem, if necessary.
Comment 1 Sergey 2008-01-14 12:25:53 UTC
Created attachment 102806 [details]
The test case to reproduce the problem

To reproduce the problem
1. unpack the archive
2. in the cintg.dg folder execute make doc 
3. after the documentation is generated, open the index.html from the docs/html folder, open files, find and open get_token.c source file, find description of the eval_exp function: there is no call graph
4. open the file get_token.h documentation, find there eval_exp function: there is the call graph
Problem: call and caller graphs must be either in both files or only in the source file, but not separated between two files.
Comment 2 Dimitri van Heesch 2008-01-21 22:19:57 UTC
According to the changelog this problem should have been fixed in 1.5.3-20071008, so before the 1.5.4 release. I see the call graph in the current subversion snapshot (and in 1.5.4) in both the header and the source file, so are you sure you get the problem with release 1.5.4? or did you perhaps use an older version by mistake?
Comment 3 Sergey 2008-01-22 07:30:39 UTC
The version 1.5.4. is the only version I have:
bash-3.1$ doxygen --version
1.5.4
Comment 4 Dimitri van Heesch 2009-08-16 11:06:20 UTC
The problem is with the extra (and redundant) forward declaration 
in the .c file. This prevents the actual definition of the function to get the proper attributes. I'll fix this in the next release.
Comment 5 Dimitri van Heesch 2009-08-20 10:12:50 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.6.0. Please verify if this is indeed the case and reopen the
bug if you think it is not fixed (include any additional information that you
think can be relevant).