Code analysis doing nothing?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Code analysis doing nothing?

跳至解决方案
3,215 次查看
martinfierz
Contributor II

Dear community,

I am using MCUxpresso 10.3.1 (2233), and I would like to use the integrated code analysis. However, I must be missing something as it's never doing anything. I am using the project explorer window to right-click on a source file (e.g. main.c) and choosing "Run C/C++ Code Analysis" from the popup menu. Then nothing happens. Can somebody tell me what I'm missing?

thx in advance

  Martin

1 解答
3,121 次查看
BlackNight
NXP Employee
NXP Employee

Hi Martin,

Check if you have enabled Code Analysis (see Free Static Code Analysis with Eclipse | MCU on Eclipse ).

Check the properties of your project: usually it uses a workspace setting:

pastedImage_3.png

In that setting, enable the items you want to have checked.

I hope this helps,

Erich

在原帖中查看解决方案

2 回复数
3,121 次查看
martinfierz
Contributor II

Hi Erich,

thanks - that helped! I didn't realize I had to first enable code analysis settings.

(I would have expected the code analysis menu command to at least display a warning/tip that I should enable it somewhere)

best regards

  Martin

0 项奖励
回复
3,122 次查看
BlackNight
NXP Employee
NXP Employee

Hi Martin,

Check if you have enabled Code Analysis (see Free Static Code Analysis with Eclipse | MCU on Eclipse ).

Check the properties of your project: usually it uses a workspace setting:

pastedImage_3.png

In that setting, enable the items you want to have checked.

I hope this helps,

Erich