主要内容

本页翻译不是最新的。点击此处可查看最新英文版本。

C++ 检查

特定于 C++ 代码的检查

Polyspace® Code Prover™ 中的 C++ 特定检查用于检查源于 C++ 特定范式的运行时错误,例如,面向对象的编程和异常处理。这些错误大多数不会出现在 C 代码中。

Polyspace 结果

不正确的面向对象编程Dynamic type of this pointer is incorrect
无效的 C++ 特定运算C++ specific invalid operations occur
未返回值的函数C++ function does not return value when expected
调用方法的 this 指针为空this pointer is null during member function call
未捕获异常Exception propagates uncaught to the main or another entry-point function

主题