When I am creating a project manually in Polyspace and I need to add custom include files, I select the folder containing include files and select option 'Add Include Folder'. In this case what all types of header files are included?
조회 수: 2 (최근 30일)
이전 댓글 표시

What are the types of header files added into the include folder as this selected folder contains .h, .he, hdb, .hed files
댓글 수: 0
답변 (1개)
Alexandre De Barros
2016년 10월 28일
Hi,
When you add a new include folder, you're just telling Polyspace to take a look at this folder when it looks for files included by your source files, typically with a line like:
#include "my_header.h"
So if your file my_header.h is located in this folder, Polyspace will find it and will include it into the source file (during the preprocessing phase, to be precise) because of the #include directive.
Now, if you include a file named my_header.hpp or another extension, Polyspace will include it too because you asked this file to be included. No assumptions are made on the header file extension.
Regards,
Alex
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Polyspace Code Prover에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!