【发布时间】:2010-10-31 14:58:11
【问题描述】:
我很想听听你有哪些清理公共头文件的例程 分发给客户。
我想听听您的意见:
评论不适用于外部消费。一般来说,我喜欢保持文档关闭 这样的代码和 cmets 可能不是一个好主意来分享:
/**
* @todo Should we change the signature of this function to
* make it obvious that xxx is really yyy?
*/
或许:
/**
* @todo Add support for feature X
*/
标签样式不一致:
void functionA(int a,
int b,
int c,
int d);
void functionB(int a,
int b,
int c);
是否有任何工具可用于准备发布的一般标头或代码?
【问题讨论】: