Contenuto principale

Analisi Bug Finder con gli script di Windows o Linux

R2026b
Controllare il codice C/C++ per individuare eventuali difetti utilizzando file batch (.bat) o script shell (.sh)

Utilizzare gli script di Windows® o Linux® per configurare ed eseguire un'analisi Polyspace®. Scoprire i comandi di sistema disponibili e come utilizzarli per eseguire Polyspace dalla riga di comando.

Per evitare di digitare il percorso completo dei comandi, aggiungere il percorso polyspaceroot\polyspace\bin alla variabile di ambiente Path del sistema operativo. In questo caso, polyspaceroot è la cartella di installazione di Polyspace, ad esempio C:\Program Files\Polyspace\R2026b. Vedere anche Install Polyspace Desktop Products.

Opzioni Polyspace

espandi tutto

-h | -helpDisplay list of static analysis options on the command line
-doc | -documentationDisplay Polyspace documentation in web browser
-list-all-valuesDisplay valid option arguments for a given command-line option
-verDisplay system information for Polyspace products
-v | -versionDisplay Polyspace version number
Comando/script da applicare al termine della verifica del codice (-post-analysis-command)Specify command or script to be executed after analysis
-options-fileRun Polyspace using list of options
-results-dirSpecify the results folder

Comandi di 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

Argomenti