Alpha's Tech Space

一个关于软件开发的技术交流空间,希望和大家共同进步!(.net/C/C++/Java)

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

在我们目前的开发工作中,除了常用的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.





posted on 2005-03-10 17:31  Lexrate  阅读(441)  评论(0编辑  收藏  举报