What is the correct annotation syntax in Polyspace Bug Finder/Code Prover for multi-line comment annotations in source code?
조회 수: 17 (최근 30일)
이전 댓글 표시
When annotating source code using the documented method in the Polyspace Bug Finder user guide the additional comments in the annotation are not included in the analysis results in the comment columns. Here is an example of the syntax used:
/* polyspace:begin<MISRA-CPP:7-3-6:Not a defect:Justify with annotations>
These additional comments not showing up in results browser in the comments column */
<the code block>
/* polyspace:end<MISRA-CPP:7-3-6:Not a defect:Justify with annotations> */
Based on the user guide for Polyspace this should be the syntax used. Could I be missing something to allow Polyspace to recognize the multi-line annotation comment to correctly put the additional comments into the comment field of the results viewer and any associated reports?
댓글 수: 0
답변 (2개)
Alexandre De Barros
2014년 3월 11일
The syntax is correct if there is no carriage return between "annotations>" and "These". If there is no carriage return, could you give a try with the latest version, 14a? If the problem is still there, I suggest you to contact the Technical Support.
Alex
Anirban
2022년 5월 23일
Since R2019b, Polyspace supports results annotations that are spread over multiple lines. See R2019b release notes.
To learn about Polyspace annotation syntax for justifying results, see Annotate Code and Hide Known or Acceptable Results.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Options at Command Line Only에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!