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 711639 - [PATCH] #include does not work with absolute paths
[PATCH] #include does not work with absolute paths
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.3.1
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2013-11-07 22:40 UTC by Matthew Woehlke
Modified: 2013-12-24 18:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.18 KB, patch)
2013-11-07 22:48 UTC, Matthew Woehlke
none Details | Review

Description Matthew Woehlke 2013-11-07 22:40:09 UTC
While trying to determine why preprocessor symbols I expected to be expanded were not being expanded, I discovered this:

#include /absolute/path/to/existing/header.h: not found! skipping...

AFAICT, doxygen's preprocessor is not able to handle #include directives when an absolute path is given for the include file name. Inspecting findFile() in pre.l seems to bear this out; the code there does indeed appear to only ever check the file name by appending it to the 'current' directory or one of the specified include directories, which will only work for relative file paths.
Comment 1 Matthew Woehlke 2013-11-07 22:48:57 UTC
Created attachment 259231 [details] [review]
patch
Comment 2 Dimitri van Heesch 2013-11-11 19:42:30 UTC
Thanks, I'll include the patch in the next GIT update.
Comment 3 Dimitri van Heesch 2013-12-24 18:59:32 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.6. 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 (preferrably in the form of a self-contained example).