Clangd¶
Making Clangd behave¶
If you have a non-standard compiler with its own include directory, you can set this by creating a file called .clangd and adding this to it:
CompileFlags: # Tweak the parse settings
Add:
- "--include-directory=/home/james/dev/agondev/include"
If you have intrinsic types the compiler just magically knows about, and clangd is complaining about them, do the following
Create a fake header¶
- Make a folder called
.clangd-includes - Make a file inside it called fake_types.h
- Put the following type of code inside it
Update .clangd¶
Now add the following to your .clangd