262 questions
0
votes
0
answers
49
views
Clion 2025.2.4:Clangd: In template: call to '__builtin_operator_delete' selects non-usual deallocation function
I use the tutorial online to solve this problem.
Like this https://youtrack.jetbrains.com/issue/CPP-29091/In-template-call-to-builtin-operator-delete-selects-non-usual-de#focus=Comments-27-6067190.0-.
...
-5
votes
0
answers
113
views
Neovim C++ clang configuration [closed]
I am using neovim for a while now and lately coding a bit more in C++.
When I use a function in the code that I realize I haven't yet declared/defined clangd gives the typical Use of undeclared ...
1
vote
0
answers
46
views
Enabling Code Templates on Eclipse CDT (LSP)
With (old) Eclipse CDT we could define templates under Preferences > C/C++ > Editor > Templates which could be inserted into the code using CTRL + SPACE shortcut.
After upgrading to C++20 I ...
0
votes
0
answers
47
views
.clang-format not putting item on new line [duplicate]
The following is my .clang-format file:
IndentWidth: 2
IndentCaseLabels: true
AllowShortEnumsOnASingleLine: false
ColumnLimit: 100
BinPackArguments: false
BinPackParameters: false
...
2
votes
0
answers
33
views
clangd LSP with CMock
I’m working on an embedded project that runs on an Infineon TriCore MCU.
The certified TriCore‑GCC and its binary libraries are Windows‑only, but I do most work on Linux.
To get quick syntax checks ...
2
votes
1
answer
80
views
How to disable fillers in COC
I am using Clangd as LSP server.
"inlayHint.display": false and "clangd.arguments": ["--function-arg-placeholders=0"]" work to disable the placeholders in functions ...
1
vote
0
answers
122
views
Why `usage.c` file in the `git` project causes the Vscode extension 'clangd' server to crash?
I use the clangd extension in vscode. When I open a usage.c file in git project, it crashes.
The log here
When I transplant the file to other project, the clangd server crash on the transplanted file ...
0
votes
2
answers
111
views
Clang: compile_commands.json "file" - attribute - What value?
What value do i have to use for the file - attribute in a compile_commands.json for clang?
Here it says:
https://clang.llvm.org/docs/JSONCompilationDatabase.html
file: The main translation unit ...
1
vote
1
answer
124
views
Correct format for JSONRPC for Clangd
I am attempting to send JSON to Clangd on my desktop using Python. I see in the terminal window that Clangd says:
I[15:52:46.580] Warning: Missing Content-Length header, or zero-length message.
"...
1
vote
1
answer
194
views
Visual Studio (not VSCode) Language Server Protocol Failing Immediately with ConnectionLostException (using Clangd as server)
Has anybody had any success with getting Visual Studio (NOT VSCode) working with clangd?
I have been trying to follow the guide at https://learn.microsoft.com/en-us/visualstudio/extensibility/adding-...
2
votes
2
answers
1k
views
How to ignore unknown options in Clangd for files outside the project structure?
I have a CMake that targets Arduino. This involves some command line options to the compiler that clangd is not familiar with.
This would give me an error at the top of any file:
Unknown argument: '-...
3
votes
1
answer
143
views
Can C++ IDEs preview variadic argument types or names? [closed]
Is there any way to restore these nice IDE hints when forwarding variadic arguments?
The classic example is std::make_unique<>(...) where you suddenly have to start clicking around to find the ...
1
vote
2
answers
210
views
Discrepancy of `unsigned long` size between llvm and gcc in riscv32
I do not know if this is a bug or intended (I'm missing a flag). But in gcc unsigned long expands to uint32_t while in llvm it doesn't.
#include <stdint.h>
void test (uint32_t i);
void test (...
2
votes
1
answer
233
views
No language server found at path "". Language support for MPLAB projects will be unavailable
I am using the MPlab extension for VScode it has been working for very basic lines, but it always gives me this warning during startup. How do I fix this?
I have tried building more advanced projects ...
1
vote
1
answer
174
views
clangd disable inlay hints for BlockEnd is not working
My project level settings.json is like following:
"C_Cpp.intelliSenseEngine": "disabled",
"C_Cpp.formatting": "clangFormat",
"C_Cpp....
1
vote
0
answers
49
views
Clangd is parsing object instantiation as function declaration (not MVP ambiguity)
I have the following c++ code
struct Foo {
Foo(int x) {}
};
int main() {
int x = 42;
Foo f(x);
}
That I can compile and execute with clang++. However, if I open this code in Neovim, my LSP (...
0
votes
1
answer
1k
views
Visual Studio Code Clangd only use clang-tidy for project. Problems with external include
I want to use clang-tidy in VsCode to establish a consistent coding style.
The project does not use Cmake and I am currently not feeding compiler-options to clang-tidy. I am running into problems ...
1
vote
1
answer
981
views
How to set up clangd with kickstart.nvim
I followed these instructions:
https://github.com/nvim-lua/kickstart.nvim
https://youtu.be/m8C0Cq9Uv9o?feature=shared
I am using Windows with gcc. And I am using Microsoft Terminal (cmd) (available on ...
0
votes
0
answers
44
views
how to make clangd use my custom llvm installation?
I am using clangd from my custom llvm installation, however it still using the system include instead of my installation.
I also tried: export CPLUS_INCLUDE_PATH=/path/to/my/llvm/include
which does ...
0
votes
2
answers
691
views
clangd false positive '<quadmath.h>' not found
I have a C++ project, using CMake, GCC and Arch Linux. I am using GCC and the project is compiling correctly (both in IDE and command line), but I have these errors in Qt Creator:
...
0
votes
1
answer
367
views
VSCode and clangd don't parse C header files with different extension name
I'm working on a C project that, for some odd reason has many header files that are named with an extension of .inc instead of .h.
So, for example instead of calling a file header1.h it will be called ...
0
votes
0
answers
371
views
How can i make Neovim clangd LSP use Homebrew gcc
I have Apple clang, as well as homebrew gcc installed. In neovim, i have set up the clangd lsp, which works fine as it is, but when i try to use bits/stdc++.h library, i get linting errors everywhere.
...
2
votes
0
answers
445
views
bear in WSL2 but failed: wrapper: failed with: gRPC call failed: failed to connect to all addresses
Thank you for taking the time to look at my question!
Environment:
OS: WSL2 on Windows11, Ubuntu 22.04.3 LTS x86_64
Bear version: 3.0.18, Bear install method: apt
Description:
I am trying bear to ...
0
votes
1
answer
335
views
How to disable Preview popups from LSP server?
I use clangd as my LSP server and configure it with .clangd file. I don't use any additional LSP plugins. And every time I use the omnifunc on a function from any header except stdio.h and stdlib.h, ...
0
votes
1
answer
1k
views
How to avoid clangd inserting function argument placeholders for `std::endl`
I'm new to neovim and I want to set it up for a c++ project. I'm using kickstart.nvim and have enabled clangd and added cpp to treesitter.
I'm having an issue where the LSP suggestion for std::endl is ...