VS Code Static Analysis Issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

VS Code Static Analysis Issue

ソリューションへジャンプ
303件の閲覧回数
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 解決策
280件の閲覧回数
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 返信
281件の閲覧回数
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 件の賞賛
返信