doxygen/doxygen — pull request #35 by zeehio (2013-09-14 18:22:33+00:00)
Title: Closes #707641 (`FILTER_SOURCE_FILES=YES` required to build CALL_GRAPHS and list refs)

Cross references were not generated if a filter was used and FILTER_SOURCE_FILES=NO.

This prevented call/caller graphs from being generated.

https://bugzilla.gnome.org/show_bug.cgi?id=707641

The cause for that bug is that references are added at the generateOutput/generateFileSources step. In this step, if FILTER_SOURCE_FILES is set to NO, the unfiltered source file is parsed by the parseCCode function. The parseCCode function is not able to detect if we are "insideBody" or not, because the sources are not filtered and therefore may not have a "C-like syntax".

If g_insideBody is set to 'false' by the parser, the references are not added and call graphs are not created.

This patch allows to add the crossreference even though g_insideBody is false if the file has a filter associated.

Comments, complaints and suggestions are welcome.

(No copyright applies to this patch. Feel free to adopt it.)

Thank you for your great work in doxygen.