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 636475 - Doxygen sometimes mangles the method in the @see section
Doxygen sometimes mangles the method in the @see section
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: build
1.7.2
Other Mac OS
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2010-12-04 19:03 UTC by Tito Ciuro
Modified: 2011-01-03 19:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Project sources + Doxyfile (243.12 KB, application/zip)
2010-12-04 19:03 UTC, Tito Ciuro
Details

Description Tito Ciuro 2010-12-04 19:03:45 UTC
Created attachment 175846 [details]
Project sources + Doxyfile

Sometimes, Doxygen mangles the method located in a @see section. For example:

/** * Removes an object from the document store.
 * @param theObject the object to be removed from the document store.
 * @param outError is used if an error occurs. May be NULL.
 * @return YES upon success, NO otherwise.
 * @warning The objects of the array must be NSFNanoObjectProtocol-compliant.
 * @see - (BOOL)removeObjectsWithKeysInArray:(NSArray *)theKeys error:(out NSError **)outError;
 * @see - (BOOL)removeObjectsInArray:(NSArray *)theObjects error:(out NSError **)outError;
 * @see - (BOOL)removeAllObjectsFromStoreAndReturnError:(out NSError **)outError;
 * @see 
 */

- (BOOL)removeObject:(id <NSFNanoObjectProtocol>)theObject error:(out NSError **)outError;

Displays the following (I only show the @see section):

See also:
- (BOOL)removeObjectsWithKeysInArray:(NSArray *)theKeys error:(out NSError **)outError;
- (BOOL)removeObjectsInArray:(NSArray *)theObjects error:(out NSError **)outError;
- (BOOL)- removeAllObjectsFromStoreAndReturnError:outError;

As you can see, the last method is wrong (should not contain a "-" before removeAllObjectsFromStoreAndReturnError:outError).

Instructions:

- unzip the attachment
- cd into Classes/Public
- open NSFNanoStore.h

Locate the method: - (BOOL)removeObject:(id <NSFNanoObjectProtocol>)theObject error:(out NSError **)outError;

I have attached the sources + Doxyfile
Comment 1 Dimitri van Heesch 2011-01-02 10:51:28 UTC
When refering to other Objective-C methods you should use:

 @see removeObjectsWithKeysInArray:error:

This is also the convention used by Apple and doxygen will autolink to the method and add the - or +. 

If you want to refer to the full prototype you should use \ref

 @see \ref removeObjectsWithKeysInArray:error: "-(BOOL) remogeObjectsWithKeysInArray:(NSArray*) theKeys error:(out NSError **) outError"

or

 @see \link removeObjectsInArray:error: - (BOOL)removeAllObjectsFromStoreAndReturnError:(out NSError **)outError;\endlink


Using \ref does not work at the moment, but I will correct this in the next subversion update.
Comment 2 Dimitri van Heesch 2011-01-03 19:01:31 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.3. 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.