Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
4k views

I am compiling with clang and editing with Visual Studio Code using the clangd extension on Windows. Compilation is fine, my issue is with intellisense. I am using a compile_flags.txt that looks like ...
CLearner's user avatar
  • 817
2 votes
1 answer
4k views

I am trying to use Visual Studio Code with C++20 with clangd. Unfortunately it seems to be running in C++98. I get the following error when using basic things like std::function I have updated as ...
Nathan29006781's user avatar
1 vote
2 answers
2k views

lsp linting clangd throws a linting error when doing an include e.g #include <iostream> error bits/c++config.h file not found I already installed mingw(via choco install) and added it to my ...
reiend's user avatar
  • 15
7 votes
1 answer
13k views

I am using the .clangd configuration file to pass compilation flags to clangd. I run clangd on a codebase with C and C++ files. How can I have some flags apply to C++ files but not C files ?
Gabriel Devillers's user avatar
27 votes
4 answers
22k views

I'm using VSCode 1.65.0, the clangd extension, and clangd from latest LLVM (14.0). It seems to have introduced a feature where it displays type-hints whenever I use auto. Here is an example: This is ...
Rui Oliveira's user avatar
0 votes
0 answers
874 views

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 ...
user avatar
0 votes
1 answer
695 views

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 <queue> #include <vector> struct ...
gdanov's user avatar
  • 311
5 votes
2 answers
7k views

I have some codes about Linux kernel driver. I use bear make to generate compile_commands.json. this is some of my compile_commands.json: "directory": "/usr/src/linux-headers-5.4.0-90-...
lucky-star's user avatar
2 votes
0 answers
1k views

I don't understand where I'm making a mistake. My steps: Installing vscodium, msys2. Updating msys2 packages, installing clangd extension, CodeLLdb. Checking compilation build, work.everything works....
Elektronik's user avatar
0 votes
1 answer
11k views

I'm using VS Code 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 ...
user5965026's user avatar
0 votes
0 answers
571 views

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 ...
isudfv's user avatar
  • 527
3 votes
2 answers
5k views

I am trying to use clangd for code completion within vscode. I am using CMake for the project setup and I am creating a compilation database. However, I have several build directories with different ...
jjcasmar's user avatar
  • 1,757
5 votes
1 answer
2k views

I'm running VSCodium with the clangd extension, and I'd like to have proper CUDA highlighting (e.g. __device__ and __host__ keywords are understood). I ran CMake to generate the compile_commands.json ...
Lucas Myers's user avatar
1 vote
1 answer
395 views

I have the hello world program from the gtkmm documentation. I can compile the program without any issues using: g++ -o example main.cc example.cc `pkg-config "gtkmm-4.0" --cflags --libs` ...
DevHyperCoder's user avatar
4 votes
0 answers
439 views

I'm working on a c++ project and use the clangd LSP server in Spacemacs. The first line of the file I'm working on says #include "somefile.hpp" The lsp server gives the error message In ...
tcffm's user avatar
  • 159
8 votes
3 answers
7k views

I have two executables that are build from the same source (a client and a server) and they're built with the compile options -D CLIENT=0 -D SERVER=1 for the server and -D CLIENT=1 -D SERVER=0 for the ...
Duddino's user avatar
  • 93
1 vote
1 answer
1k views

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\...
Seven's user avatar
  • 57
2 votes
0 answers
207 views

I've installed clangd for MS VS Code and everything works fine. I wonder how can I manually request clangd via language server protocol? Or is there capability to programmatically include ClangdServer ...
Russell's user avatar
  • 21
6 votes
3 answers
13k views

I 've recently started to code on Vim and while it's not easy, it's worth it. I am struggling to figure out basic things that I had for granted in an IDE like KDevelop or VSCode especially when it ...
Petross404's user avatar
3 votes
1 answer
3k views

I use neovim and coc-clangd for C/C++ programming. Every thing is ok and i can jump through definitions and search references of a symbol in all of my project files by holding the cursor on the symbol ...
AMIR REZA SADEQI's user avatar
0 votes
0 answers
399 views

How do I set up clangd for netbeans 12.1 because I cannot find anything online about setup with netbeans
Michael Z's user avatar
2 votes
1 answer
510 views

This is the reference source file #include <iostream> int main() { int x = 7; std::cout << x << '\n'; } If I open a line before the line with cout and write std:: I ...
Enlico's user avatar
  • 30.2k
1 vote
0 answers
1k views

How does clangd know where a function definition is when only one file has been indexed through the LSP (Language Server Protocol) message textDocument/didOpen? This question is based off of the ...
John DeBord's user avatar
12 votes
1 answer
7k views

My current file structure is: ├── common │   └── example.cc ├── compile_commands.json ├── include    └── common    └── example.hh example.hh: Leave it blank example.cc: #include "common/...
Phil's user avatar
  • 131
15 votes
3 answers
23k views

I am working on a project that uses a GCC library (SFML), which is not available for clang, as far as I know. I am using COC with vim for code completions, but for C++ it needs clangd. Is there a way ...
Thaddaeus Markle's user avatar