How do I document a property in Doxygen if the language only supports accessors?
In C / C ++, I usually need to document a property, not just its accessors (getters and setters). Some documentation systems support this directly, such as GTK-Doc. But how can I do this with Doxygen?
I am describing properties in getters, but this is definitely not a solution. Copying the description in getter and setter is even worse.
Typical C example where Obj
opaque:
/**
* Doc for getter
*/
int getSize(Obj* obj);
/**
* Doc for setter
*/
void setSize(Obj* obj, int size);
// Where to put the documentation for size itself?
+3
source to share
1 answer