主要内容

仅可在命令行使用的选项

仅可在命令行使用的选项、高级选项

这些分析选项在 DOS 或 UNIX® 命令行中随函数 polyspace-bug-finder 一起使用。如果您希望在用户界面中为工程使用某些高级设置,请使用 Other 配置选项。

Polyspace 选项

全部展开

-author指定工程作者
-cSpecify path of license file used by the product
-consider-switch-as-single-decision假设一个开关语句是一个单一的决策点,计算其圈复杂度。
-checkers-activation-file激活自定义的缺陷和编码规则组合,以进行 Polyspace Bug Finder 分析 (自 R2021a 起)
-date指定分析日期
-doc | -documentation在 Web 浏览器中显示 Polyspace 文档
-h | -helpDisplay list of possible options
-I指定用于编译的包含文件夹
-import-comments从以前的分析导入审查信息
-list-all-valuesDisplay valid option arguments for a given command-line option
-options-file使用选项列表运行 Polyspace
-prog指定工程的名称
-report-output-nameSpecify name of report
-results-dirSpecify the results folder
-scheduler指定集群或作业调度器
-sources指定源文件
-sources-list-file指定包含源文件列表的文件
-start-level-from-oneStart counting the call level or nesting level from one.
-ver显示 Polyspace 产品的系统信息
-verif-version分配版本标识符
-v | -version显示 Polyspace 版本号
-asm-begin -asm-endExclude compiler-specific asm functions from analysis
-classificationControl precisely which files to include in Polyspace analysis and how to analyze them (自 R2023a 起)
-code-behavior-specificationsAssociate behaviors with code elements such as functions
-consider-analysis-perimeter-as-trust-boundaryConsider the analysis perimeter as trust boundary so that data coming from outside the current analysis perimeter is considered tainted
-create-checkersCreate new checkers for Polyspace Bug Finder analysis (自 R2023b 起)
-custom-targetCreate a custom target processor with specific data type sizes
-disable-concurrency-detectionDisable automatic detection of multitasking functions
-detect-atomic-data-raceEnable detecting data race with atomic operation
-detect-bad-float-op-on-zero检测浮点数比较运算符(等于运算符)中当其中一个操作数为 0.0 时的情况。
-dump-preprocessing-infoShow all macros implicitly defined during a particular analysis
-ignore-code-annotationsIgnore C/C++ code annotations justifying Polyspace results and show all results as unreviewed (自 R2022a 起)
-incremental在分析过程中启用增量编译 (自 R2022a 起)
-max-processes指定分析的最大处理器数量
-non-preemptable-tasksSpecify functions that represent nonpreemptable tasks
-no-credentials-checkDisable credential check when running Polyspace Bug Finder or Polyspace Code Prover analysis on a remote cluster
-options-for-sources指定源文件的特定分析选项
-preemptable-interrupts指定表示可抢占中断的函数
-pstunit-testOption to specify a test the input of which is used for static analysis
-regex-replace-rgx -regex-replace-fmtMake replacements in preprocessor directives
-submit-job-from-previous-compilation-resultsSpecify that the analysis job must be resubmitted without recompilation
-termination-functionsSpecify process termination functions
-tmp-dir-in-results-dir将临时文件保留在结果文件夹中
-wchar-t-isSpecify the nature of type specifier wchar_t for your compiler
-xml-annotations-descriptionApply custom code annotations to Polyspace analysis results