使用 Windows 或 Linux 脚本进行 Bug Finder 分析
使用批处理文件 (
.bat) 或 shell 脚本 (.sh) 检查 C/C++ 代码中是否存在缺陷使用 Windows® 或 Linux® 脚本配置并运行 Polyspace® 分析。了解可用的系统命令,并学习如何从命令行使用这些命令来运行 Polyspace。
为免于键入命令的完整路径,请将路径 添加到您操作系统上的 polyspaceroot\polyspace\binPath 环境变量中。其中, 是 Polyspace 的安装文件夹,例如,polyspacerootC:\Program Files\Polyspace\R2026a。另请参阅安装 Polyspace 桌面端产品。
Polyspace 选项
系统命令
polyspace-bug-finder | (系统命令)对 Windows、Linux 或其他命令行运行 Bug Finder 分析 |
polyspace-comments-import | (System Command) Import review information from previous Polyspace analysis |
polyspace-configure | (系统命令)从 DOS 或 UNIX 命令行中的编译系统创建 Polyspace 工程 |
polyspace-report-generator | (系统命令)从本地或 Polyspace Access 上存储的 Polyspace 分析结果生成报告。 |
polyspace-results-export | (系统命令)将 Polyspace 结果导出为 CSV 或 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.