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,082 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

1,523 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

2,077 Views
ErichStyger
Senior Contributor V

excellent, thank you for sharing!

0 Kudos