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 626647 - copydoc does not recognize array parameters e.g. int[]
copydoc does not recognize array parameters e.g. int[]
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.7.1
Other Linux
: Normal major
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2010-08-11 16:59 UTC by Jeff
Modified: 2010-10-09 08:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jeff 2010-08-11 16:59:03 UTC
copydoc does not correctly recognize a function signature containing array notation.  I have many function signatures of the form foo(int a[], char *b) and foo64(int64_t a[], char *b) where I would like to copy the documentation from foo to foo64.  Unfortunately if the signature contains brackets [] anywhere, the function lookup fails to find a match or finds an incorrect match.

I was able to work around this by adding \[\] to the FUNCCHAR on line 314 of src/doctokenizer.l:

FUNCCHAR  [a-z_A-Z0-9,:\<\> \t\*\&]

becomes

FUNCCHAR  [a-z_A-Z0-9,:\<\> \t\*\&\[\]]

But I'm not sure if this would have unwanted side effects.  So far so good.
Comment 1 Dimitri van Heesch 2010-08-11 19:21:13 UTC
Makes sense indeed.
Comment 2 Dimitri van Heesch 2010-10-09 08:19:37 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.2. 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.