【问题标题】:Doxygen/Objective-C : how can I make constants that are declared outside the class definition show up in the class docs?Doxygen/Objective-C:如何使在类定义之外声明的常量显示在类文档中?
【发布时间】:2010-07-20 14:19:03
【问题描述】:

我正在使用 Doxygen 来记录一些 Objective-C 代码。我在类定义之外声明了一些常量。我希望这些出现在课堂文档中。我怎样才能让 doxygen 包含它们? (使用 \file 只是在单独的文档页面中显示它们)。

#import blah blah

/**
 * This is my constant
 */
extern NSString*constant someConstant; 

/**
 * More documentation
 */
@interface MyClass : NSObject <NSCoding> {

 //etc
}

【问题讨论】:

    标签: objective-c doxygen


    【解决方案1】:

    尝试使用 \memberof doxygen 命令。 See.

    #import blah blah
    
    /**
     * \memberof MyClass
     * This is my constant
     */
    extern NSString*constant someConstant; 
    
    /**
     * More documentation
     */
    @interface MyClass : NSObject <NSCoding> {
    
     //etc
    }
    

    【讨论】:

      猜你喜欢
      • 2011-06-13
      • 2016-07-27
      • 2017-06-02
      • 1970-01-01
      • 2011-01-03
      • 2020-11-20
      • 2013-04-09
      • 1970-01-01
      • 2013-04-11
      相关资源
      最近更新 更多