主要内容

组 5:类 (C++)

Polyspace® 中的自定义规则 5.x 强制使用类和类成员的命名约定。有关如何启用这些规则的信息,请参阅检查自定义规则 (-custom-rules)

编号规则详细信息
5.1All class names must follow the specified pattern. 
5.2All class types must follow the specified pattern.类类型是以前定义的类(使用 typedefusing 关键字定义)的别名。
5.3All names of data members must follow the specified pattern. 
5.4All names of function members must follow the specified pattern. 
5.5All names of static data members must follow the specified pattern. 
5.6All names of static function members must follow the specified pattern. 
5.7All bitfield members must follow the specified pattern.