Skip to content

Clangd: Add clangd parameters in IDE agnostic config file#4319

Open
WillyJL wants to merge 2 commits into
flipperdevices:devfrom
WillyJL:fix/clangd-other-ide
Open

Clangd: Add clangd parameters in IDE agnostic config file#4319
WillyJL wants to merge 2 commits into
flipperdevices:devfrom
WillyJL:fix/clangd-other-ide

Conversation

@WillyJL
Copy link
Copy Markdown
Contributor

@WillyJL WillyJL commented Dec 20, 2025

What's new

  • Clangd now works in other IDE's without IDE specific configuration, eg Zed editor
  • With this patch getting language support (in Zed) is as easy as:
    • For FBT:
      • Clone repo
      • Build fully once (./fbt updater_package)
      • Restart Clangd extension in IDE
    • For uFBT:
      • Clone/create app
      • ufbt vscode_dist (only needed once)
      • Restart Clangd extension in IDE
      • To build: ufbt cdb build (always include cdb before each build/launch command, it will update the compile_commands.json used by Clangd)

Verification

  • Compile firmare, open other editor with clangd support (eg Zed), open a C file, clangd goes through indexing and diagnostics work as expected

Checklist (For Reviewer)

  • PR has description of feature/bug or link to Confluence/Jira task
  • Description contains actions to verify feature/bugfix
  • I've built this code, uploaded it to the device and verified feature/bugfix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant