I have some Python code that was documented with doxygen and I would like to know if it's normal to document self parameter for methods?
Example:
## @par Desc开发者_JS百科ription:
# Some desc
# @note
#
# @param something @e string: a string
#
# @return @b Boolean: True if ...
#
# @b Example:
# @code
#
# instance.myMethod("some")
#
# @endcode
def myMethod(self, something):
return True
What would be the correct doxygen documentation for this method?
Do I have to do something special regarding self parameter?
How do I document the parmeter types, like string, int, list, ...?
I don't know what common practice is, but I wouldn't do it. It just adds clutter to the docs, since its usage is obvious. Clutter in documentation is bad beacuse it obscures the stuff you really want to see.
精彩评论