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 672119 - Doxygen refeers "defines" as "enum" in PHP code
Doxygen refeers "defines" as "enum" in PHP code
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: documentation
1.8.0
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2012-03-15 08:28 UTC by Ivan Shpakov
Modified: 2012-05-19 12:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ivan Shpakov 2012-03-15 08:28:28 UTC
Source:
<?php
define ('CONSTNAME1', 0);
define ('CONSTNAME2', 'VALUE');
?>

Output:
Enumerations 
enum   CONSTNAME1  
enum   CONSTNAME2

Settings:
EXTRACT_ALL = true
Generate only HTML
Other settings by default

I be obliged to using INPUT_FILTER to replace: "define ('CONSTNAME', VALUE);" => "const CONSTNAME = VALUE" (c-style)
Comment 1 Dimitri van Heesch 2012-03-24 15:28:28 UTC
I agree that the choice for mapping defines to enums wasn't a very good one. I'll map it to a const as you suggest.
Comment 2 Dimitri van Heesch 2012-05-19 12:26:27 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.1. 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.