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
1 answer

Make clangd to parse whole directories

I'm using the clangd extension to analysis c/c++ base project in VS code , and this project use many open source projects ,and use the Atom.mk to determine how to build the project. here come the problems: cause the clangd only parse 3 paths…
lianzisong
  • 11
  • 1
0
votes
1 answer

Program working correct after compilation(both gcc, clang), but vs-code's `clangd` extenstion warning

hlo, Im using MicroSoft vs-code, with clangd extension, and not the MS's official c/cpp one. program.c: ... { int result; result = (((result = open("/tmp/file.txt", O_RDONLY)) == -1) ? -1 : close(result)); } ... In…
gitman-2021
  • 111
  • 8
0
votes
1 answer

Clangd LSP shows unknown type name 'interface' in dsound.h

I just starting working on a Win32 application and I'm editing in Neovim. I'm running off WSL and using clangd as my LSP. To compile I'm using Microsoft cl and it's building the binary fine. I was refactoring some code and I encountered a weird LSP…
BigDru
  • 162
  • 10
0
votes
1 answer

How to set clangd (eglot) to C++20?

I'm not quite sure if this is the right place to ask such a question, but you could help me a lot with any hint you have! So I'm using eglot and clangd as my lsp, and I want to set clangd C++ standard to C++20. I have tried to put -std=c++20 in…
floatfoo
  • 83
  • 2
  • 8
0
votes
1 answer

what is clangd and why does it mark my avr code?

For the code completion I want to use clangd. I think it is a "server" that provides code completion. Clangd doesn't find links to the libraries in my avr-gcc code. There are some…
0
votes
1 answer

How can I ignore some warning of VSCode's clangd plugin?

I installed a clangd plugin in VSCode to develop C++. This plugin works well, but it shows some code error/waring in our project because we use a deprecated function in . include deprecated function How can I mask this error without…
TOMOCAT
  • 51
  • 1
  • 3
0
votes
1 answer

What was the .txt file which allows clangd to understand with what compile arguments a program gets compiled in?

I remember that there's a ".txt" file which allows to define link/compile-time arguments, but I've forgotten it's name. I tried to google for answer.
0
votes
0 answers

want to pick header by pressing enter in vim(clang)

I've installed clang for my vim. Now when I'm typing for example #include , i see "" or <> headers, but when I hit enter on it, it's just typing new line instead of picking that preset. I don't want to get a new line after pressing enter when I have…
moon3fire
  • 1
  • 3
0
votes
1 answer

Why does clangd respond with "method not found" when using textDocument/didOpen?

I try to communicate with clangd. The first initialization is fine, but when trying to open a document with "textDocument/didOpen" i get the response "method not found". I cannot find any other method in the specification for opening documents. Is…
Lasersköld
  • 2,028
  • 14
  • 20
0
votes
1 answer

Is there any extension for vscode to make it support C intelligence only (without C++)?

Due to my job, I have to develop software with only C but not C++. It will be good that when I write class A {}; Vscode will display an error or a warning. Now I use clangd, it will be great if some settings can satisfy.
komonzhang
  • 67
  • 5
0
votes
1 answer

Python communicating with clangd in a non-blocking way

I'm implementing a plugin for one of my hobby projects and basically I want to use an LSP for highlightning code put on a website. In my case, I want to use clangd to gather information about pre-written C and C++ code. The problem I'm facing is how…
Xeverous
  • 973
  • 1
  • 12
  • 25
0
votes
0 answers

How to disable these tips of clangd in vscode?

Appears when I change the intellisense extention from Microsoft C/C++ to clangd. enter image description here
sleng
  • 1
  • 1
0
votes
2 answers

How can i use neovim and coc.nvim for develop windows c++ apps on linux

I develop c++ apps on linux and i use neovim with coc.nvim and coc-clangd plugins. I want to develop an app for windows but i comfort with linux and neovim so i want to use them for it. But i get some include errors with some windows headers (etc.…
sabenburra
  • 93
  • 1
  • 3
  • 6
0
votes
1 answer

How to deal with Linux kernel module on LSP (clangd)

I have tried develop Linux kernel module on vim with LSP(clangd) But bunch of warning and errors are appeared. It may caused by lack of clangd some configurations. What header files and compiler parameters are required to use clangd with kernel…
KiYugadgeter
  • 3,796
  • 7
  • 34
  • 74
0
votes
0 answers

VSCode "search all references" using CLANGD server indexation fails to find #define identifiers in code

I have a large c/c++ project containing a lot of #define macros defined in headers. VSCode "find all references" find only the definition in header file but not it usage in cpp files. I am using Visual Studio Code with Clangd extension with a remote…
amestin
  • 31
  • 1
  • 3