Forum reply: clangd on windows in neovim
handmade.network·9h
📝Neovim
Preview
Report Post

Posting on this old thread in case anyone stumbles upon this in the future.. as it totally looks like the clangd team isn’t willing to work on proper support for this, it seems that workarounds is all we have..

After fighting with this myself for a long time, the best workaround I have found yet is the one described in https://www.frogtoss.com/labs/clangd-with-unity-builds.html.

Essentially, assuming unity.cpp is your main (only) translation unit that includes all other .cpp files PLUS any necessary headers etc, what you do is:

  • Add #pragma once to the top of this file
  • Add #include "unity.cpp" to the top of every other .cpp file
  • Profit!

What this does is, it leaves your unity build unaffected, since t…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help