Hauptinhalt

Bug Finder-Analyse mit MATLAB-Skripten

Prüfen von C/C++ Code auf Defekte mithilfe von MATLAB® M-files

Wenn Sie MATLAB als Skriptsprache verwenden, können Sie Polyspace® von MATLAB aus ausführen. Führen Sie zu Beginn eine einmalige Einrichtung durch, um Polyspace und MATLAB miteinander zu verknüpfen. Siehe Integrate Polyspace with MATLAB and Simulink.

Nach der Einrichtung können Sie alle Polyspace-Funktionen von MATLAB aus verwenden. Insbesondere können Sie ein polyspace.Project-Objekt zur Durchführung einer Polyspace-Analyse erstellen und die Ergebnisse in eine MATLAB-Tabelle einlesen.

Klassen

polyspace.Project Run Polyspace analysis on C and C++ code and read results
polyspace.GenericTargetOptionsCreate a generic target configuration
polyspace.DefectsOptionsCreate custom list of defects to check
polyspace.CodingRulesOptionsCreate custom list of coding rules to check
polyspace.BugFinderResultsRead Polyspace Bug Finder results from MATLAB

Eigenschaften

polyspace.Project.Configuration PropertiesCustomize Polyspace analysis of handwritten code with options object properties

Funktionen

polyspacesetupIntegrate Polyspace installation with Simulink
polyspacerootGet Polyspace installation folder
polyspaceBugFinderRun Polyspace Bug Finder analysis from MATLAB
polyspaceConfigureCreate Polyspace project from your build system at the MATLAB command line
polyspace_reportGenerate reports from Polyspace analysis results

Themen