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 669406 - Not all info is written out in case of preprocessing
Not all info is written out in case of preprocessing
Status: VERIFIED FIXED
Product: doxygen
Classification: Other
Component: general
1.7.6.1-SVN
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2012-02-05 13:36 UTC by albert
Modified: 2012-02-25 20:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
PATCH write debug output of preprocessor to stdout with printf (1.02 KB, patch)
2012-02-05 13:41 UTC, albert
none Details | Review

Description albert 2012-02-05 13:36:16 UTC
In case the -d preprocessor option is used in combination with the QUIET option in the Doxyfile, not all the information is written to the output.


Example:
input file aa.F:
subroutine tst
end subroutine

Used the standard Doxyfile with only QUIET set to YES.

The output of: $ doxygen.exe -d preprocessor
subroutine tst
00002 end subroutine
00003
00004

The output should be: $ doxygen.exe -d preprocessor
---------
00001 subroutine tst
00002 end subroutine
00003
00004
---------
Macros accessible in this file:
---------

---------
Comment 1 albert 2012-02-05 13:41:53 UTC
Created attachment 206821 [details] [review]
PATCH write debug output of preprocessor to stdout with printf

Write all the debug output of the -d preprocessor option with printf to stdout instead of writing it through the msg call. msg calls won't print in case of the option QUIET = YES (see also pdf documentation Chapter 8 Preprocessing the Hint at the end of the chapter regarding using -d Preprocessor)
Comment 2 Dimitri van Heesch 2012-02-05 13:58:43 UTC
Hi Albert,

Instead of using msg or printf, I'll use

Debug::print(Debug::Preprocessor,0,"...");

which was intended for debug prints.
Comment 3 albert 2012-02-05 14:08:44 UTC
Hi Dimitri,

Thanks for the tip.
I saw that there are a few more msg calls in the file pre.l with  the Debug::Preprocessor (one just above the things I changed)
Comment 4 Dimitri van Heesch 2012-02-25 15:37:30 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.0. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.
Comment 5 albert 2012-02-25 20:00:44 UTC
debug output is written as expected