I need to do parsing of some Objective-C headers.
- I've tried using
Doxygen
and parsing the XML output, but it doesn't fully support Objective C headers without comments (it chokes on macros defined in properties, check Doxygen not properly recognizing properties) - I've also tried using
appledoc
, but the XML output is not complete enough (for example, there is no information of inheritance for classes) and it has the same problem with macros on properties. - I've also tried parsing the output of the library Objective C metadata (using
otool
), but noticed that the metadata doesn't keep the types on methods (so you getmethod:(id)param:(id)
)
Does anyone know a good tool to do what I want? I'm suspecting clang
will help me, but so far the -ast-dump
and similar options just tries to generate an AST for a source I don't have (only headers).