Questions tagged [clangd]

clangd is a language server that implements the Language Server Protocol

clangd is a language server that implements the Language Server Protocol

156 questions
0
votes
0 answers

Neovim clangd not indexing all include files

I have a massive C project that is build by cmake, I generate the compile_commands.json and all the includes are there, but for example in main.c it cannot find libxml/parser.h. In the compile_commands.json main.c is compiled with arm-none-eabi-gcc…
Gian Laager
  • 474
  • 4
  • 14
0
votes
1 answer

stdio.h and FPU errors in Neovim using clangd LSP

I have a stm32f103 project that is initialized using stm32cubemx and I'm using neovim for editing and arm-none-eabi-gcc for compilation of code (whit auto-generated makefile). I also have installed clangd LSP and also bear to generate…
mehdi
  • 167
  • 11
0
votes
2 answers

why does lsp clangd linting throws an error "bits/c++config.h file not found?

lsp linting clangd throws a linting error when doing an include e.g #include error bits/c++config.h file not found I already installed mingw(via choco install) and added it to my path also tried added the includes enter image description…
0
votes
1 answer

How to use clangd to find headers of gcc on MacOS

My system is macOS 12.3 21E230 arm64 and I have installed gcc and llvm from homebrew. I use Neovim as editor and use nvim-lsp via clangd to complete my code, and it works well with clang. Now I want to use clangd to find headers of gcc and compelete…
Frank OU
  • 41
  • 2
0
votes
0 answers

abnormal behaviour of neovim with lsp clangd

this is my code that print hello world now if i use command Format that call vim.cmd [[ command! Format execute 'lua vim.lsp.buf.formatting()' ]] my code will becames like this now strange symbols appear in the text clangd changes my text with ^M…
user16297678
0
votes
1 answer

Use clangd via the terminal

I would like to test clangd with my terminal but I can't make a request. I have read the documentation for the LSP language but I still don't understand how to start a connection etc. Here is the opening message: clangd is a language server that…
antho
  • 534
  • 4
  • 18
0
votes
1 answer

clangd language server gives weird errors. code compiles

I've got platformio project that compiles and works. Using emacs + lsp-mode + clang. One of the weird errors I get is for structures like this: #include #include struct test_v{ std::vector buff; }; on the line #include…
gdanov
  • 312
  • 2
  • 12
0
votes
1 answer

VS Code environment with Clangd

I try to configure my VS Code environment for C/C++. I do it based on this guide: https://steelph0enix.github.io/posts/vscode-cpp-setup/ Currently I have a problem with Clangd. It doesn't seem to find the standard headers (e.g. iostream, 'iostream'…
kwit
  • 1
  • 1
  • 1
0
votes
1 answer

C++ standards conflict in compile_commads

I'm working on some project which uses C++17 standard with clangd-13.0. Sometime after I decided to add library that used C99 standard in its CMakeLists file and now clangd always does analysis based on a C99 standard even in cpp files. My…
Psyhich
  • 47
  • 6
0
votes
1 answer

How to check if clangd is running in VS code?

I installed clangd, but I'm not sure if it's running. I don't seem to be getting some of the features that were advertised, so I feel like it's not running or only partially working. I'm looking at the "Visual Studio Code" section of…
roulette01
  • 1,984
  • 2
  • 13
  • 26
0
votes
1 answer

Failed to install clangd language server in VScode

I'm using VScode and my workspace is on a remote linux server. I successfully installed clangd extension on the remote server, however when I tried to download the language server, I get the following error: Failed to install clangd language server:…
user5965026
  • 465
  • 5
  • 16
0
votes
0 answers

Why there is no indentation when I use clangd in vscode?

when I type if and use clangd code completion, I got this. if (condition) { statements } I'm expecting if (condition) { statements } It's the same thing for while and for. clangd-12 --version Ubuntu clangd version…
isudfv
  • 179
  • 1
  • 9
0
votes
0 answers

Visual studio code rename header

Anyone know how to rename a header file in vscode so that all includes of the header file will be updated accordingly? For example, if I rename Header0.h to Header1.h, all includes will change from #include "Header0.h" to #include "Header1.h" Use…
tShalti
  • 21
  • 1
0
votes
2 answers

How to make clangd use diagnostics flags?

I'm trying to setup clangd with Neovim built-in LSP Config and it is working fine. Problem is, usually I compile everything with the flags -Wall -Wextra -Werror, how can I make clangd use these flags when analyzing code and prompt for errors? Thanks…
0
votes
1 answer

CLion: Clangd not found

I had to set up the executable in CLion today. Now the autocorrect is not working anymore and I'm receveibing the error message: Clangd is not found at D:\Programme\CLion\CIDR\clion\bin\clang\win\clangd.exe Clangd seems to be in a different…
Seven
  • 47
  • 5
1 2 3
10
11