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.
excellent, thank you for sharing!