![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1153843/image.png)
Polyspace UT cannot traverse subfolder structure
2 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
Anirban
2022 年 10 月 12 日
編集済み: Anirban
2022 年 10 月 12 日
If I understand the question correctly, you are adding a path to an include folder but the subfolders are not being traversed. Indeed, you have to explicitly add paths to all folders in your Polyspace project.
If you set up a project in the Polyspace user interface, during project setup, there is a check box Add recursively that automatically adds paths to a subfolder if you provide the path to a top level folder (see image below).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1153843/image.png)
If you are running analysis at the command line, you have to add a -I to every subfolder. You can write a script to generate -I's to a subfolder given a top level folder, or set up a project in the Polyspace user interface using the above convenient check box and generate an options file for runs at the command line.
2 件のコメント
Anirban
2022 年 10 月 13 日
Yes, if all those folders have a common parent folder, you can add the parent folder recursively. Otherwise, you can add each folder individually.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Troubleshoot Project Creation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!