Have anybody extended comment-dwim to automagically insert a multi-line comment like
/** ...
*/
void foo
{
}
if the cursor is currently in front of a function/variable definition/declaration?
I realize that the challenge here is context detection; could a call to end-of-defun() followed by a call to beginning-of-defun() be used here?
(eq (point) (car (bounds-of-thing-at-point 'defun))). Perhaps preceded by(while (comment-forward 1)), and all wrapped in asave-excursionI imagine.