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 630823 - [PATCH] Generate correct call graphs when function call is disabled by preprocessor.
[PATCH] Generate correct call graphs when function call is disabled by prepro...
Status: RESOLVED OBSOLETE
Product: doxygen
Classification: Other
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
[moved_to_github]
Depends on:
Blocks:
 
 
Reported: 2010-09-28 15:04 UTC by Martin Gerlach
Modified: 2018-07-30 10:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
(Preliminary) Patch to solve the problem with example. (20.26 KB, application/zip)
2010-09-28 15:04 UTC, Martin Gerlach
Details

Description Martin Gerlach 2010-09-28 15:04:06 UTC
Created attachment 171267 [details]
(Preliminary) Patch to solve the problem with example.

Example:

test.cpp:

#include <iostream>
using namespace std;

#define FUNC1

void func1(int test)
{
        cout << "func1: Hallo" << endl;
}
void func2(int test)
{
        cout << "func2: Hallo" << endl;
}

int main() {

#ifdef FUNC1
        func1(0);
#else
        func2(0);
#endif

        return 0;
}


Doxygen produces something like this for the main function when
generating xml output:

<references refid="test_8cpp_1a5d7f916959f4f32d1f8d38816c20fbef"
compoundref="test_8cpp" startline="7" endline="10">func1</references>
<references refid="test_8cpp_1af40a1280e9eecc3ea5aa6e37a4b41f65"
compoundref="test_8cpp" startline="11" endline="14">func2</references>

But the second function (func2) gets never called.
Comment 1 André Klapper 2018-07-30 10:40:27 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!