Here are two styles of commenting on an entity (e.g. in a C/C++ like language).
Style 1:
// This is a comment
// about foo
int foo;
// This is a comment
// about bar
int bar;
Style 2:
int foo;
// This is a comment
// about foo
int bar;
// This is a comment
// about bar
I know that, usually, when writing a doxygen comment, it's typically appears before the documented entity, e.g.:
/// This is a doxygen comment
/// about foo
int foo;
/// This is a doxygen comment
/// about bar
int bar;
Is that always the case, or can I place it after the entity, as in the second commenting-style above?