VS Code Static Analysis Issue

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

VS Code Static Analysis Issue

跳至解决方案
344 次查看
JoeSanchez
Contributor II

I have a VS Code project that was building properly and was able to debug in VS Code (project template from the SDK). But if I ran static analysis on a file im getting these errors

JoeSanchez_0-1709170996767.png

 

I have these pre-processor macro defined in teh c_cpp_properties.json

JoeSanchez_1-1709171084880.png

 

but as you can see from the errors, cmsis_compiler.h was complaining unknown compiler even though __GNUC__ is defined.

Am I missing a define for static analysis?

0 项奖励
回复
1 解答
321 次查看
Alex_Wang
NXP Employee
NXP Employee

Hi, @JoeSanchez 

       Hello, you are not missing a definition, error is caused by the rules of the tool during static analysis. The project will not be missing in the project, the project will specify the corresponding compiler to run, you can completely ignore these errors, do not worry.

       Hope this helps you.

Best regards, Alex

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
322 次查看
Alex_Wang
NXP Employee
NXP Employee

Hi, @JoeSanchez 

       Hello, you are not missing a definition, error is caused by the rules of the tool during static analysis. The project will not be missing in the project, the project will specify the corresponding compiler to run, you can completely ignore these errors, do not worry.

       Hope this helps you.

Best regards, Alex

 

0 项奖励
回复