GNOME Bugzilla – Bug 610166
bad links in source code browser for multiple functions of same name
Last modified: 2018-07-30 10:20:32 UTC
Created attachment 153933 [details] Example code with doxyfile Consider a C project consisting of more binaries, there will be several functions of same name (at least main functions). Doxygen correctly detects, there are separate "main" functions (shown e.g. in Globals) and creates separate pages for them. However if you go to the source code the links to the "main" function all point to first occurrence of "main" in project (see attached example code). Expected behavior (in this example) is clicking on "main" in e.g. test3.c should lead to test3.c page not test1.c. Tested with 1.6.2-20100208 SVN rev. 720
I'm experiencing the same issue. In my case, I have 10s and even hundreds of source files, most with a "main" and a "mainline" function, some with "finalization" functions. When you click on the link for these functions, they take you to a different source file with the same function. If you're not careful and are not looking at the source name which is often just in the header, this can be confusing to the user. Also, I noticed that the call graph for functions with names like "main" will more often than not represent the interactions in a different source file.
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!