Add MISRA and error comment
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi,
is there a quickly procedure (without using GUI) to insert MISRA and error comment in the source code?
I found the following link https://it.mathworks.com/help/bugfinder/ug/address-polyspace-results-through-bug-fixes-or-comments.html but I it takes a lot time.
Could you give me any support, please?
Thanks in advance
댓글 수: 0
답변 (4개)
Alexandre De Barros
2018년 7월 25일
Hello,
No, there is no way to quickly annotate the code itself. What is the need here, and how would you choose the violations and errors to annotate?
Best regards,
Alexandre
댓글 수: 0
Salvatore Nappi
2018년 7월 26일
댓글 수: 1
Alexandre De Barros
2018년 7월 27일
Hello Salvatore,
In other words, you would like to have, from a commented violation or defect in the Results List, a new command in the contextual menu to automatically add the annotation in the code, instead of selecting "Add pre-justification to clipboard", edit the file at the right line and paste the annotation (something you can already do today).
As explained earlier, this is not possible for the moment, but I can make this suggestion to the R&D team.
Best regards,
Alexandre
Salvatore Nappi
2018년 8월 21일
댓글 수: 1
Alexandre De Barros
2018년 8월 22일
Hello Salvatore !
The line numbers for the coding rule violations are available in reports generated from Code Prover only.
Alex
참고 항목
카테고리
Help Center 및 File Exchange에서 MISRA C:2012 Directives and Rules에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!