通过 Windows 或 Linux 脚本进行 Code Prover 分析
使用批处理文件 (
.bat) 或 shell 脚本 (.sh) 检查 C/C++ 代码中是否存在运行时错误使用 Windows® 或 Linux® 脚本配置并运行 Polyspace® 分析。了解可用的系统命令,并学习如何从命令行使用这些命令来运行 Polyspace。
为免于键入命令的完整路径,请将路径 添加到您操作系统上的 polyspaceroot\polyspace\binPath 环境变量中。其中, 是 Polyspace 的安装文件夹,例如 polyspacerootC:\Program Files\Polyspace\R2026a。另请参阅安装 Polyspace 桌面端产品。
Polyspace 选项
系统命令
polyspace-code-prover | (系统命令)从 Windows、Linux 或其他命令行运行 Code Prover 验证 |
polyspace-comments-import | (System Command) Import review information from previous Polyspace analysis |
polyspace-configure | (System Command) Create Polyspace Platform project, workspace, or options file from build command or compilation database |
polyspace-report-generator | (System Command) Generate reports from Polyspace analysis results stored locally or on Polyspace Access |
polyspace-results-export | (System Command) Export Polyspace results to external formats such as CSV or JSON |
polyspace-project -diff, polyspace-project -merge | (System Command) Compare and merge Polyspace Platform projects, workspaces, configurations and tests before submission to source control |
polyspace-project -convert-psprj-to-workspace | (System Command) Convert Polyspace project file to Polyspace Platform workspace file and project files |
polyspace-project -generate-launching-script-for | (System Command) Generate files needed to run static analysis on a Polyspace Platform project |
主题
- 从命令行运行 Polyspace 分析
通过 Bug Finder 或 Code Prover 使用批处理文件 (
.bat) 或 shell 脚本 (.sh) 检查 C/C++ 代码。 - 用于 Polyspace 分析的选项文件
将所有分析选项收集到一个文本文件中,以便轻松跨工程共享。
- Generate Launching Script for Polyspace Platform Project to Run Static Analysis from Command Line
Run static analysis on a Polyspace Platform project from the command line.