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 684574 - Bug 639716 "A strange member __pad0__ appears in the document" again in 1.8.2
Bug 639716 "A strange member __pad0__ appears in the document" again in 1.8.2
Status: RESOLVED INCOMPLETE
Product: doxygen
Classification: Other
Component: general
1.8.2
Other Windows
: Normal major
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2012-09-21 17:26 UTC by Phillip Mathews
Modified: 2013-01-12 14:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Phillip Mathews 2012-09-21 17:26:15 UTC
This bug is back in version 1.8.2 for windows
Comment 1 Phillip Mathews 2012-09-21 22:58:57 UTC
This only happens when I have an INPUT_FILTER containing:

sed -e "s: PACKED;:;/**\#PACKED*/:" -e "s:__attribute__.*((.*)):/** &*/:" %1%

[note: "%1%" is the DOS equivalent of "$1"]
Comment 2 Phillip Mathews 2012-09-21 23:17:24 UTC
Problem will go away if you change "sed" above to "@sed" - DOS is inserting the exanded command from the bat file into STDOUT.
I don't know how this can be fixed in Doxygen!
Comment 3 Dimitri van Heesch 2012-09-22 14:35:10 UTC
You can try to put the command in a batch file.

From your comments I gather that this is not a general problem in doxygen, but rather a very specific use. If you think something needs to be fixed in doxygen then please attach a self-contained example (source+config file in a tar or zip) that allows me to reproduce the problem.
Comment 4 Phillip Mathews 2012-09-22 22:54:48 UTC
The problem was that I did put the command into a batch file & DOS's normal method of expanding scripts is similar to running "bash -v <script-name>". To work around this problem, all commands in the .bat file should be prefaced with th '@' character [i.e. use "@sed ..." in the script above instead of just "sed ..."]. 

Where the magic variables "__pad[0-9]*__" come from is a mystery, but there should probably be something added to the FAQs about how to format DOS scripts for use as INPUT_FILTERs. 

I found this by setting "FILTER_SOURCE_FILES = YES" in Doxyfile, clicking "Go to the source code of this file." in the generated documentation and noting the expanded lines from the script were inserted ahead of the emitted filtered source file. Putting the "sed" command above into a "filter.bat" file and invoking it with "INPUT_FILTER = filter.bat" in the Doxyfile. [The example files, "foo.hpp" and "bar.hpp" used in the original bug report 639716 can be used to illustrate the problem]
Comment 5 Phillip Mathews 2012-09-23 01:42:20 UTC
Note: this problem also occurs with Cygwin and the solution of prepending the '@' signs in the .bat file fixes it there also.
Comment 6 Dimitri van Heesch 2012-09-23 08:09:21 UTC
I could not reproduce the problem with the example in bug 639716. 
Can you show me what the output is if you run doxygen with the -d filteroutput option. Then doxygen will dump the output after filtering.
Comment 7 Tobias Mueller 2013-01-12 14:07:50 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!