第一步. 开启semantic-mode

M-x semantic-mode


第二步. 引入srecode

M-: (require 'srecode)


第三布. 开启srecode-minor-mode

M-x srecode-minor-mode


第四步. 将光标移动到函数定义头上


第五部. 执行命令srecode-document-insert-function-comment

M-x srecode-document-insert-function-comment


就可以看到自动插入了Doxygen风格的注释了

/**
 * @name say -
 * @param word -  word
 * @return void
 */
void say(const string& word)
{
}


参考资源:http://stackoverflow.com/questions/19259677/using-srecode-to-generate-doxygen-comments-for-an-existing-c-file