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 413877 - Objective-C #import statement stops header file being parsed
Objective-C #import statement stops header file being parsed
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.5.3-SVN
Other Mac OS
: Normal blocker
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2007-03-02 14:53 UTC by dazza
Modified: 2007-05-05 13:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
header, objective-c file and doxy config file (3.56 KB, application/x-compressed-tar)
2007-03-04 13:47 UTC, dazza
Details

Description dazza 2007-03-02 14:53:45 UTC
Given a header file (.h) a #import statement stops the file being parsed correctly and information being added to the documentation set. Commenting out the #import results in the file being parsed. Placing the #import in a ///@cond... endcond block does not fix the issue.

example MyClass.h

/// @cond DOXYSKIP
#import <Cocoa/Cocoa.h>
/// @endcond

/** class to doxygen
**/ 
@interface MyClass : NSObject
{

}

///init the class
- (id)init;

this file fails to parse, comment out the #import and it does parse.

I've made this a blocker as it basically stops me from using doxygen :-(
Comment 1 dazza 2007-03-03 14:19:23 UTC

*** This bug has been marked as a duplicate of 387781 ***
Comment 2 dazza 2007-03-03 14:24:18 UTC
I marked this as a duplicate of bug #387781. Unfortunatly the code changed recommened aleady in CVS and I have checked they are in my check out from CVS and I am still seeing #import break documentation.
Comment 3 Dimitri van Heesch 2007-03-04 13:24:33 UTC
Then please attach a self-contained example (source code + config file) that allows me to reproduce the bug. The example above seems incomplete (misses the @end and config file).

This seems to work fine:
------------ test.h -----------------
#import <Cocoa/Cocoa.h>

/** class to doxygen
 */
@interface MyClass : NSObject
{

}

///init the class
- (id)init;

@end
--------------------------------------
Comment 4 dazza 2007-03-04 13:47:18 UTC
Created attachment 83886 [details]
header, objective-c file and doxy config file

Example .h and m file that don't parse with doxygen config file
Comment 5 André Klapper 2007-04-11 19:43:44 UTC
please reopen bug reports when providing required information. thanks.
Comment 6 Dimitri van Heesch 2007-05-05 11:33:48 UTC
dazza: I failed to see anything wrong/missing with the output of the example you provided. Can you check if the problem is still present in the 1.5.2 release? If not then please close the bug, if so then please attach the html output you get as well and tell me exactly what is wrong/missing...