Clean up doxygen comments in nestkernel directory#2113
Conversation
…edundant comments
jougs
left a comment
There was a problem hiding this comment.
Thanks for making the chaos and invonsistencies visible. I'm reviewing in greater detail once the crying stops. For now, I have a couple of generic comments:
- I prefer the following doxygen style for functions and classes, even if the comment itself is only a single line:
(I also think this is the predominant style presently used, so it will save you a lot of trouble down the line 😄)
/** * ... */ - I would use
//!for long one-liners above variables and//!<for short ones behind them
Maybe we should set up a video session where we go through the Doxygen documentation and ask people what they (dis)like most?
Sure, I think you're right that it's more common
When you say above variables, can you give me an example of the syntax you'd expect this kind of comment? Where would not want this comment style? (it's just easier if I have an example to look up, because it's easy to get confused staring at slashes and askterisks all day ;) )
Yah sure, I think that could work. |
|
Here are some examples that hopefully clarify my style preferences mentioned above: /**
* Set the minimal and maximal delay and override automatically determined values.
*/
void set_delay_extrema(long min_delay, long max_delay);
//! The variable min_delay holds the value for the smallest transmission delay in the network in steps
long min_delay_;
long max_delay_; //!< The largest transmission delay in the network (steps)In real code, I would then actually prefer if similar variables were documented consistently, i.e. both //! The variable min_delay holds the value for the smallest transmission delay in the network in steps
long min_delay_;
//! The variable max_delay holds the value for the largest transmission delay in the network in steps
long max_delay_;long min_delay_; //!< The smallest transmission delay in the network (steps)
long max_delay_; //!< The largest transmission delay in the network (steps) |
|
Pull request automatically marked stale! |
fix missing endif and else comments
…imulator into cleanup-cpp-docs
|
Pull request automatically marked stale! |
|
@jougs the conflict is fixed |
|
@jougs ping! |
Final run-through and further cleanup of differen types of comments
jougs
left a comment
There was a problem hiding this comment.
Many thanks for this heroic effort and your patience. Merging without second review due to discussion in several meetings and because this "only" touches documentation.
This PR aims to make the comments (doxygen and c++) more consistent and useful.
So far, only a few files have been touched because I would like some feedback as to whether I'm going in the right direction before proceeding. @jougs could you take a look?
Changes implemented: