Nemeski to Programming@programming.dev • 4 days agoDevs sound alarm after Microsoft subtracts C/C++ extension from VS Code forkswww.theregister.comexternal-linkmessage-square105fedilinkarrow-up1447arrow-down111cross-posted to: hackernews@lemmy.bestiver.se
arrow-up1436arrow-down1external-linkDevs sound alarm after Microsoft subtracts C/C++ extension from VS Code forkswww.theregister.comNemeski to Programming@programming.dev • 4 days agomessage-square105fedilinkcross-posted to: hackernews@lemmy.bestiver.se
minus-square@chakli@lemmy.worldlinkfedilink1•2 days agoBased on https://docs.zephyrproject.org/latest/develop/getting_started/index.html Zephyr seems to use cmake So you should be able to use https://cmake.org/cmake/help/latest/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html to generate the compile commands json and configure clangd to use that.
minus-squareJustEnoughDuckslinkfedilink1•2 days agoYeah, I have that set that via set(CMAKE_EXPORT_COMPILE_COMMANDS ON) but no compile_commands.json are actually output, sadly.
Based on https://docs.zephyrproject.org/latest/develop/getting_started/index.html Zephyr seems to use cmake
So you should be able to use https://cmake.org/cmake/help/latest/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html to generate the compile commands json and configure clangd to use that.
Yeah, I have that set that via
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
but no compile_commands.json are actually output, sadly.