组 5:类 (C++)
Polyspace® 中的自定义规则 5.x 强制使用类和类成员的命名约定。有关如何启用这些规则的信息,请参阅检查自定义规则 (-custom-rules)。
| 编号 | 规则 | 详细信息 |
|---|---|---|
| 5.1 | All class names must follow the specified pattern. | |
| 5.2 | All class types must follow the specified pattern. | 类类型是以前定义的类(使用 typedef 或 using 关键字定义)的别名。 |
| 5.3 | All names of data members must follow the specified pattern. | |
| 5.4 | All names of function members must follow the specified pattern. | |
| 5.5 | All names of static data members must follow the specified pattern. | |
| 5.6 | All names of static function members must follow the specified pattern. | |
| 5.7 | All bitfield members must follow the specified pattern. |