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 751616 - Filter ignored for .tcl file
Filter ignored for .tcl file
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.10
Other Linux
: Normal blocker
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2015-06-28 21:11 UTC by heller
Modified: 2015-07-27 18:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This tarball includes test data, my filter, and test runs under Ubuntu 12.04 (31.30 KB, application/x-gzip)
2015-06-28 21:11 UTC, heller
Details

Description heller 2015-06-28 21:11:42 UTC
Created attachment 306250 [details]
This tarball includes test data, my filter, and test runs under Ubuntu 12.04

For some reason, the FILTER_PATTERNS option is being (partially) ignored in 
Doxygen 1.7.6.1.  I have this directive in my Doxyfile:

FILTER_PATTERNS        = "*.tcl=./tcl2dox.tcl" "*.src=./tcl2dox.tcl"           
 
The *.src files are being properly filtered, but the *.tcl files are NOT being 
filtered. Why is this?  What should I be doing to force Doxygen to process Tcl 
files through my filter?

This is with Ubuntu 12.04.1 and doxygen_1.7.6.1-2ubuntu1.  A set of test runs 
with test files are available for download at this URL:

http://www.deepsoft.com/wp-content/uploads/2013/04/doxygen-test.tar.gz

The problem also occurs with 1.8.1.2 under Raspbian.
Comment 1 André Klapper 2015-07-01 10:54:30 UTC
Why is that a "blocker"?
Comment 2 heller 2015-07-01 11:40:16 UTC
It means that it is not possible to use the current versions of doxygen that
ship with Ubuntu or Raspbian to build my package. One has to downgrade the
version of doxygen in order to properly build my package.  Most people (and 
certainly any distro maintainers) are NOT going to want to downgrade software. 
This means that my package is effectively blocked from these distros (and 
probably others).
Comment 3 heller 2015-07-06 20:35:20 UTC
I just tested 1.8.10 -- it is *also* broken, in exactly the same way as 1.7.6 and 1.8.1.2.  I am changing the version on this bug report to 1.8.10.
Comment 4 Dimitri van Heesch 2015-07-06 20:42:57 UTC
Since your filter expects a doxygen version without any built-in tcl support and back in those days doxygen would parse any unknown file as a C file, you need to tell doxygen to treat files with the .tcl (and .src) extension as C files using

EXTENSION_MAPPING      = tcl=C src=C

Let me know if that solves the problem.
Comment 5 heller 2015-07-06 21:07:44 UTC
Ah,  That fixes it.  It is not in the clear docs that I needed to set EXTENSION_MAPPING, if I am using a filter.