Konfigurieren von Quellen und Build-Optionen
R2026bWenn Sie zum Erstellen Ihres Quellcodes einen Build-Befehl wie make oder cmake verwenden oder mit Ihrem Build-System eine JSON-Kompilierdatenbank erzeugen können, können Sie aus dem Build-Befehl oder der Kompilierdatenbank ein Polyspace®-Plattform-Projekt erstellen. Die Quelldateien und Build-Optionen im Polyspace-Plattform-Projekt werden anhand der Compileraufrufe im Build-Befehl bzw. in der Kompilierdatenbank ermittelt.
Andernfalls legen Sie die Optionen explizit in Ihrer Build-Konfiguration fest. Wenn Sie für die Option Compilation toolchain (Static Analysis) Ihren Compiler angeben, kann der Analysator compilerspezifische Schlüsselwörter erkennen. Umgehen Sie buildbezogene Analysefehler mit Optionen wie Preprocessor definitions (-D) oder Command/script to apply to preprocessed files (-post-preprocessing-command).
Funktionen
polyspace-configure | (System Command) Create Polyspace Platform project, workspace, or options file from build command or compilation database |
Polyspace-Optionen
Themen
Erste Schritte
- Configure Sources and Build Options in Project for Polyspace Analysis and Testing
Set build options in Polyspace project configuration, generate source paths and build options using build command or compilation database. - Information Gathered from Build Systems for Polyspace Analysis and Testing
Learn what information is extracted when you trace your build command to create a Polyspace Platform project.
Konfigurieren von Optionen mit Build-Befehlen
- Create Polyspace Platform Project from Build Command in User Interface
Create a project in the Polyspace Platform user interface from a working build command or compilation database. - Requirements for Polyspace Project Creation from Build Systems
Learn why automatic Polyspace project creation might not work for your build system and how to work around some of the causes. - Select Files for Polyspace Project Using Pattern Matching
Select files to include in Polyspace project or options file using expressions with glob patterns. - Create Polyspace Platform Projects from Builds That Use Makefiles
Reuse build information in makefiles for Polyspace analysis and testing. - Modularize Polyspace Projects by Using Makefile Builds
Create a separate Polyspace project or options file for each binary in makefile build. - Create Polyspace Platform Projects from IDE Builds
Specify source files and configuration options by tracing your Visual Studio® build. - Create Polyspace Platform Projects from CMake Builds
Reuse build information in CMakeLists files for Polyspace analysis and testing. - Create Polyspace Platform Project from Cross-Compiler Build
Create a project with a fully configured template toolchain from a cross-compiler build command.
Manuelles Konfigurieren von Optionen
- Configure Sources and Build Options in Project for Polyspace Analysis and Testing
Set build options in Polyspace project configuration, generate source paths and build options using build command or compilation database. - Selecting Common Toolchain for Static Analysis and Testing
Understand how the static analysis compiler is determined from the compilation toolchain that you select for testing. - Provide Standard Library Headers for Polyspace Analysis
Find paths to C or C++ standard library headers from your compiler and specify the paths in your Polyspace project. - Remove or Replace Keywords Before Compilation
Replace or remove keywords from preprocessed code to avoid compilation errors. - Gather Compilation Options Efficiently for Polyspace Analysis
Put workarounds for compilation errors into a single file and include that file in analysis.
Unterstützung für C/C++ Sprachstandards und Erweiterungen
- C/C++ Language Standard Used in Polyspace Analysis
See supported language standards and the default standard used in Polyspace analysis.
- Keil or IAR Language Extensions Supported with Polyspace
Find which Keil or IAR-specific extensions of the C language standard are supported for verification.