Contenido principal

Análisis de Bug Finder con scripts de Windows o Linux

R2026b
Compruebe código C/C++ en busca de defectos utilizando archivos por lotes (.bat) o scripts de shell (.sh)

Utilice scripts de Windows® o Linux® para configurar y ejecutar un análisis de Polyspace®. Obtenga más información sobre los comandos de sistema disponibles y sobre cómo utilizar estos comandos para ejecutar Polyspace desde la línea de comandos.

Para evitar tener que escribir la ruta completa a los comandos, añada la ruta polyspaceroot\polyspace\bin a la variable de entorno Path en el sistema operativo. En este caso, polyspaceroot es la carpeta de instalación de Polyspace; por ejemplo, C:\Program Files\Polyspace\R2026b. Consulte también Install Polyspace Desktop Products.

Opciones de Polyspace

expandir todo

-h | -helpDisplay list of static analysis options on the command line
-doc | -documentationDisplay Polyspace documentation in web browser
-list-all-valuesMostrar argumentos de opción válidos para una opción determinada de línea de comandos
-verDisplay system information for Polyspace products
-v | -versionDisplay Polyspace version number
Comando/script que se desea aplicar al finalizar la verificación de código (-post-analysis-command)Specify command or script to be executed after analysis
-options-fileRun Polyspace using list of options
-results-dirSpecify the results folder

Comandos del sistema

polyspace-bug-finder(System Command) Run a Bug Finder analysis on Windows, Linux, or other command line
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

Temas