How to enable Eclipse Compilation Database support (CDB, compile_commands.json)?

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

How to enable Eclipse Compilation Database support (CDB, compile_commands.json)?

2,144 次查看
michaelstapelbe
Contributor II

I have described the procedure to enable Eclipse Compilation Database support (CDB, compile_commands.json) in NXP MCUXpresso v11.3 on my blog:

https://michael.stapelberg.ch/posts/2021-04-01-compilation-database-eclipse-mcuxpresso/

This will give you working Macro Expansion, Open Declaration, and other C/C++ tooling features when working with external Makefile projects.

2 回复数

1,585 次查看
adam_smith
Contributor II

Hello @michaelstapelbe,

Nice work! It works well.

Just a little problem that I'm experiencing. I have checked that if the project has assembly files (*.S), then with the "Exclude files not in the Compilation Database" option within "Compilation Database Parser", they are excluded even when they are used by the current project.

I could checked that the assembly files are listed correctly in the compile_commands.json file.

Do you know if there is an option where assembly files can be selected to NOT be excluded?

Thanks

0 项奖励

2,139 次查看
ErichStyger
Senior Contributor V

excellent, thank you for sharing!

0 项奖励