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 652086 - does ALIAS work for VHDL code?
does ALIAS work for VHDL code?
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: build
1.7.1
Other Linux
: Normal major
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2011-06-07 22:56 UTC by David Belohrad
Modified: 2017-12-25 18:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ALIAS with VHDL code in Doxygen 1.8.5/1.8.6 and 1.8.13 (389.63 KB, application/x-zip-compressed)
2017-05-31 06:30 UTC, JK
Details
Updated example: ALIAS with VHDL code in Doxygen 1.8.5/1.8.6 and 1.8.13 (389.66 KB, application/x-zip-compressed)
2017-06-01 05:36 UTC, JK
Details

Description David Belohrad 2011-06-07 22:56:01 UTC
I have specified an alias in the Doxyfile as follows:

ALIASES                += register_definition{3}="\1 booh \2"

then I put comment into the VHDL comment block:

--! @register_definition{0x680014}{32}{Turn Clock Watchdog}

and now, during compilation I get:

/home/belohrad/SVN/fbctdab/branches/06_improving_bpf/stratix_fbct/sources/newstyle/tdclk_watchdog/tdclk_watchdog.vhd:103: warning: Found unknown command 
`\register_definition'

and of course HTML does not contain the aliased code.

Does the ALIAS work for VHDL code?
Comment 1 mk 2011-06-11 10:00:38 UTC
I tried the alias example from the manual ALIASES += Bold{1}="<b>\1</b>"
  --! signal \Bold{main clk}
  clk : in  STD_LOGIC;

and it works.

try version 1.7.4
Comment 2 albert 2013-10-21 18:24:50 UTC
As far as I can see the usage of the ALIAS is not conform the documentation and should be like:
@register_definition{0x680014,32,Turn Clock Watchdog}

The remark of mk is just for an ALIAS with a single argument.

I checked it with version 1.8.5.

I think this problem can be set to: resolved, notabug
Comment 3 JK 2017-05-30 09:29:02 UTC
In version 1.8.6 and further it does not work anymore!

: warning: Found unknown command `\register_definition'


Obviously there's a change in that version!
Comment 4 albert 2017-05-30 16:54:29 UTC
1) it does make sense a lot of sense to add a comment to a closed issue as in most cases this people will filter the issues and not display resolved issues. So either create an new issue or reopen the current issue but in both cases:

attach a (small) self-contained example (source+config file in a tar or zip) that allows us to reproduce the problem?

and also indicate the results with the latest version (1.8.13) of doxygen.
Comment 5 JK 2017-05-31 06:30:05 UTC
Created attachment 352921 [details]
ALIAS with VHDL code in Doxygen 1.8.5/1.8.6 and 1.8.13

I've made a simple testcase with a counter (VHDL code):

In Doxygen version 1.8.5 the ALIAS works, but in further versions it does not word ("unknown command"). 

Just look at the HTML output of each Doxygen version.
Comment 6 mk 2017-05-31 19:17:07 UTC
try register_definition{2}="\1 booh \2"
 
change

@reg{Counter register,Down counter with n bits}
in @register_definition{Counter register,Down counter with n bits}
in your example
Comment 7 JK 2017-06-01 05:36:55 UTC
Created attachment 352980 [details]
Updated example: ALIAS with VHDL code in Doxygen 1.8.5/1.8.6 and 1.8.13

Thanks, but the phrase "reg" or "register_definition" isn't the critical issue. 
It's rather the processing of the ALIAS which seems to be "skipped" in version 1.8.6 and above.

I've updated my example to match the previous example and show that it is a bug.
Comment 8 albert 2017-06-04 10:45:13 UTC
I've just pushed a proposed patch to github (pull request 571)
Comment 9 JK 2017-06-19 08:33:51 UTC
For my application and testcase your patch works!
Thanks a lot!
Comment 10 albert 2017-08-21 11:39:35 UTC
Code integrated in master version on github.
Comment 11 Dimitri van Heesch 2017-12-25 18:43:55 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.14. 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 (preferably in the form of a self-contained example).