VS Code Static Analysis Issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VS Code Static Analysis Issue

Jump to solution
304 Views
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 Kudos
Reply
1 Solution
281 Views
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

 

View solution in original post

0 Kudos
Reply
1 Reply
282 Views
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 Kudos
Reply