我很想听听你有什么例程来清理你分发给客户的公共头文件。
我想听听您的意见的一些事情是:
评论不适用于外部消费。一般来说,我喜欢让文档靠近代码,这样的评论可能不是一个好主意:
/**
* @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);
是否有任何工具可用于准备一般发布的标头或代码?