Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Doxygen documents my Objective-C Code as though it is C++

I want to set up doxygen as the tool to document my Objective C source code. The code generating tool seems to work well, except that the way it renders the descriptions of my Objective C methods makes them look like they are written in C++. I have read through all of the various options in the Doxygen website, but I can't find a combination of options to force it to render a more "Objective-C"-like appearance.

Likewise, editing the doxygenLayout.xml file seems to be useful for changing the names of the different sections, but I don't see how it can be used to change the way that methods are represented. I have included an example below:

My Source Code

The Resulting Documentation

Notice how version has two parenthesis after it, and the class uses two colons between the class name and the method name. Is there a way to change this?

like image 823
Matthew Gillingham Avatar asked Mar 13 '26 13:03

Matthew Gillingham


1 Answers

If you want to force doxygen to generate documentation for Objective-C, you can use EXTENSION_MAPPING in doxygens config file. For example, if you want to force doxygen to Objective-C for .m and .h files, add the following:

EXTENSION_MAPPING      = m=Objective-C \
                         h=Objective-C
like image 110
Oliver Eichhorn Avatar answered Mar 15 '26 03:03

Oliver Eichhorn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!