433
you are viewing a single comment's thread
view the rest of the comments
[-] chakli@lemmy.world 1 points 1 day ago

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.

[-] JustEnoughDucks@feddit.nl 1 points 1 day ago

Yeah, I have that set that via set(CMAKE_EXPORT_COMPILE_COMMANDS ON) but no compile_commands.json are actually output, sadly.

this post was submitted on 26 Apr 2025
433 points (97.6% liked)

Programming

19842 readers
194 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS