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

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

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

2,508件の閲覧回数
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,949件の閲覧回数
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,503件の閲覧回数
ErichStyger
Specialist I

excellent, thank you for sharing!

0 件の賞賛
返信