董祖雄
-e1551 -e1540 -e1740 -e731 -e1775 -e737 -e713 -e732
//析构函数必须catch所有的Exceptions
//析构函数中必须对所有指针型的成员变量赋值成NULL
//析构函数中必须对所有指针型的成员变量赋值成NULL
//两个布尔表达式比较,例如 ( false != ...) 或者 ( false == ... ) //捕获异常通用语句, catch(...)
//赋值语句中, int赋给unsigned int, 导致符号丢失
//调用函数中, 形参是unsigned int, 调用者给予的是int, 导致符号丢失 //调用函数中, 形参是unsigned int, 调用者给予的是long, 导致符号丢失
-e740 //强制结构体指针类型转化
齐新征
// Syntax Errors
-e40 // 不再查找NULL
-e1058 // Initializing a non-const reference 'struct __rb_tree_base_iterator &' with a non-lvalue
// Internal Errors // Fatal Errors
// Warnings
-e641 //把enum作为int类型使用
-e661 //检查数组是否越界,该选项默认应该打开,这里检查单个文件时可以关闭
// Informational
-e1776 //Converting a string literal to char * is not const safe -e818 //Pointer parameter 'infoPtr' (line 152) could be declared as pointing to const
-e1762 //Member function 'McbApsHaMgr::ProcBBackupBegin(void)' could be made const
-e1764 //Reference parameter 'msg' (line 1354) could be declared const ref
-e715 //检查是否冗余参数,默认打开,检查单个文件时可以关闭
// Elective Notes
-e1904 //C风格注释不再检查
指针类型的强制转换,pclint不允许这样,但是我们有很多代码都用到了,所以建议关闭
赵雪山
////zhaoxsh added
-w3 //设置告警级别1-4,检查时可从1开始,逐步排除,建议检查到Level 3 即可
-esym(40,__null) //it says __null is undeclared
//my own filter
-e30 //Error -- Expected a constant
//-esym(429,pOmMo) //pointer pOmMo can't be free until it is unregistered from all
-emacro(740,feof) /* ignore errors in macro */
-e611 //arning -- Suspicious cast
-e661 //Warning -- Possible access of out-of-bounds pointer -e662 -e796
//end of my own filter
-e537 //warning -- Repeated include file -e574 //Signed-unsigned mix with relational
-e578 //Warning -- Declaration of symbol hides symbol -e620 //Warning -- Suspicious constant (L or one?))
-e1512 //destructor for base class is not virtual
-e668 //Warning -- Possibly passing a null pointer to function
-e671 //Possibly passing to function 'memcpy(void *, const void *, unsigned int)' a negative value
//out put in level 3
-e650 //Warning -- Constant out of range for operator *
-e613 //Warning -- Possible use of null pointer in left argument to operator
-e716 //while(1) is allowed
-e766 //Info -- Header file not used in module -e785 //Info -- Too few initializers for aggregate //such as char* myarray[10] = {NULL};
-e1774 //Info --Could use dynamic_cast to downcast polymorphic type
-e1926 //Note --class member's default constructor implicitly called --
Effective C++ #12
-e1927 //Note -- Symbol did not appear in the constructor initializer list -e1928 //Note --Base Class did not appear in the constructor initializer list) -- Effective C++ #12 wql
-e1904 //C风格注释
-e1926 //构造函数中初始化成员 -e1927 //构造函数中初始化成员
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库Pclint选项在线全文阅读。
相关推荐: