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

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

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

2,587 Views
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 Replies

2,028 Views
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 Kudos
Reply

2,582 Views
ErichStyger
Specialist I

excellent, thank you for sharing!

0 Kudos
Reply