AUTOSAR C++14 Rule A5-0-4
Pointer arithmetic shall not be used with pointers to non-final classes
描述
规则定义
Pointer arithmetic shall not be used with pointers to non-final classes.
Polyspace 实现
对指向类型被用作基类的表达式的指针算术和数组式访问进行报告。
故障排除
如果您预期会出现违规,而 Polyspace® 未报告该违规,请参阅诊断为何编码规范违规未按预期显示。
检查信息
| 组:表达式 |
| 类别:必需、自动 |
版本历史记录
在 R2019a 中推出