polyspaceConfigure
Create Polyspace Platform project, workspace, or options file from build command or compilation database
Syntax
Description
The polyspaceConfigure command creates a Polyspace® Platform project or options file from a build command or compilation
database.
Note
Before you run Polyspace from MATLAB®, you must link your Polyspace and MATLAB installations. See Integrate Polyspace with MATLAB and Simulink or Integrate Polyspace Server Products with MATLAB.
Create Project
polyspaceConfigure [-output-platform-project|-update-platform-project]
creates a Polyspace Platform project (psPlatformProject [options] buildCommand.psprjx file) using information
gathered from executing the command buildCommand.
If you use the option
-output-platform-project, the command creates a new project.If you use the option
-update-platform-project, the command updates an existing project by overwriting auto-generated information such as automatically added sources and build configuration, and retaining manually added information such as static analysis configuration and tests.
If you create a project from a build command using
polyspaceConfigure, the build command must be the last entry.
Any option following the build command is considered as an option for the build
command and not a polyspaceConfigure option.
polyspaceConfigure [-output-platform-project|-update-platform-project]
creates a Polyspace Platform project using information gathered from the JSON compilation
database file specified by psPlatformProject -compilation-database jsonFile [options]jsonFile.
Create Workspace with Multiple Projects for Multiple Components
polyspaceConfigure -module [-output-platform-project|-update-platform-project]
creates or updates a Polyspace Platform workspace (psPlatformWorkspace [options] buildCommand.pswks file) using information
from buildCommand. Each project in the workspace corresponds to
one binary created by the build command and includes sources directly involved in
creating the binary. The option -module is supported only if your
build command uses GNU® or Visual C++® linkers.
polyspaceConfigure -modules-list
creates or updates a Polyspace Platform workspace (fileWithModulesList [-project-root commonRootFolder] [-output-platform-project|-update-platform-project] psPlatformWorkspace [options] buildCommand.pswks file) using information
from buildCommand. If the file
fileWithModulesList lists multiple root folders with one
folder per line, each project in the workspace includes all sources residing under
one such root folder. If the folder paths are not absolute, they are resolved with
respect to the current folder unless you use the option
-project-root.
polyspaceConfigure -module-output-pattern
creates or updates a Polyspace Platform workspace (regexPattern [-output-platform-project|-update-platform-project] psPlatformWorkspace [options] buildCommand.pswks file) using information
from buildCommand. If the regular expression
regexPattern contains a capturing group capturing multiple
root folders, each project in the workspace includes all sources residing under one
such root folder. If the folder paths are not absolute, they are resolved with
respect to the current folder.
polyspaceConfigure -modules-list
creates or updates a Polyspace Platform workspace (fileWithModulesList [-project-root commonRootFolder] [-output-platform-project|-update-platform-project] psPlatformWorkspace -compilation-database jsonFile [options].pswks file) using information
from a compilation database jsonFile. If the file
fileWithModulesList lists multiple root folders with one
folder per line, each project in the workspace includes all sources residing under
one such root folder. If the folder paths are not absolute, they are resolved with
respect to the current folder unless you use the option
-project-root.
polyspaceConfigure -module-output-pattern
creates or updates a Polyspace Platform workspace (regexPattern [-output-platform-project|-update-platform-project] psPlatformWorkspace -compilation-database jsonFile [options].pswks file) using information
from a compilation database jsonFile. If the regular expression
regexPattern contains a capturing group capturing multiple
root folders, each project in the workspace includes all sources residing under one
such root folder. If the folder paths are not absolute, they are resolved with
respect to the directory entry in the compilation database.
Create Options File
polyspaceConfigure -output-options-file
creates an options file for Polyspace static analysis using information gathered from executing the command
optionsFile [options] buildCommandbuildCommand.
polyspaceConfigure -output-options-file
creates an options file for Polyspace static analysis using information gathered from the JSON compilation
database file specified by optionsFile -compilation-database jsonFile [options]jsonFile.
Create Multiple Options Files for Multiple Components
polyspaceConfigure -module -output-options-path
creates multiple options files for static analysis in
optionsFolder [options] buildCommandoptionsFolder using information from
buildCommand. Each options file corresponds to one binary
created by the build command and lists sources directly involved in creating the
binary. The option -module is supported only if your build command
uses GNU or Visual C++ linkers.
polyspaceConfigure -modules-list
creates multiple options files for static analysis in
fileWithModulesList [-project-root commonRootFolder] -output-options-path optionsFolder [options] buildCommandoptionsFolder using information from
buildCommand. If the file
fileWithModulesList lists multiple root folders with one
folder per line, each generated options file lists sources residing under one such
root folder. If the folder paths are not absolute, they are resolved with respect to
the current working folder unless you use the option
-project-root.
polyspaceConfigure -module-output-pattern
creates multiple options files for static analysis in
regexPattern -output-options-path optionsFolder [options] buildCommandoptionsFolder using information from
buildCommand. If the regular expression
regexPattern contains a capturing group capturing multiple
root folders, each generated options file lists sources residing under one such root
folder. If the folder paths are not absolute, they are resolved with respect to the
current folder.
polyspaceConfigure -modules-list
creates multiple options files for static analysis in
fileWithModulesList [-project-root commonRootFolder] -output-options-path optionsFolder -compilation-database jsonFile [options]optionsFolder using information from a compilation database
jsonFile. If the file
fileWithModulesList lists multiple root folders with one
folder per line, each project in the workspace includes all sources residing under
one such root folder. If the folder paths are not absolute, they are resolved with
respect to the current folder unless you use the option
-project-root.
polyspaceConfigure -module-output-pattern
creates multiple options files for static analysis in
regexPattern -output-options-path optionsFolder -compilation-database jsonFile [options]optionsFolder using information from a compilation database
jsonFile. If the regular expression
regexPattern contains a capturing group capturing multiple
root folders, each generated options file lists sources residing under one such root
folder. If the folder paths are not absolute, they are resolved with respect to the
directory entry in the compilation database.
Examples
Input Arguments
Version History
Introduced in R2013b