Doxygen和Objective-C类 [英] Doxygen and Objective-C categories

查看:195
本文介绍了Doxygen和Objective-C类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽管Doxygen的最新版本声称更好地处理Objective-C类别,似乎在我的源代码中阻止类别。我想知道有人是否已经得到了正确的文档分类。



作为一个例子,我有一个NSString类别定义为:

  @interface NSString(CCFExtensions)

使用一个名为NSString_CCFExtensions.h的接口文件和实现文件NSString_CCFExtension.m



Doxygen将引用超类的文件;但是,尽管看似有效的doxygen语法,但没有一个类别方法被记录。



有人设法获得Objective-C类别的人愿意指出我正确的源标记?

解决方案

您可以在这里找到涵盖类别的教程:



http://www.duckrowing .com / 2010/03/18 / documenting-objective-c-with-doxygen-part-i /


Although the latest releases of Doxygen claim better handling of Objective-C categories, it still seems to choke on categories in my source code. I'm wondering if someone has gotten it to document categories properly.

As an example, I have a category on NSString defined as:

@interface NSString (CCFExtensions)

with an interface file named NSString_CCFExtensions.h and implementation file NSString_CCFExtension.m

Doxygen will reference the file with the superclass; but none of the category methods are documented despite seemingly valid doxygen syntax.

Would someone who has managed to get Objective-C categories be willing to point me to the correct source markup?

解决方案

You can find a tutorial that covers categories here:

http://www.duckrowing.com/2010/03/18/documenting-objective-c-with-doxygen-part-i/

这篇关于Doxygen和Objective-C类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆