在我们目前的开发工作中,除了常用的cl编译器, 还有其它一些编译工具,cmt lint就是其中之一。
Enviroment:
Windows or Unix
HighLight:
Strict compiling check items,which could help you to finger out many tiny errors , even in logical level.
Example:
char * pStr = null;
pStr = CreateString(STRINGLENGTH);
cout<<pStr;
// this expression could be passed under cl, but must cause
//error in lint because it coud be regarded as a potential
//risk that pStr could have null value; the correct expression
//is : if(null!=pStr){cout <<pStr; }
So we can find that it's a helpful tool for us to write clean ,correct and reliable codes.
Hope you enjoy it.