Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
36 views

I'm using Windows 11, CMake, VSCodium, clangd 21.1.0 and Visual Studio 2022 Community. I can compile my project just fine but I don't know how to get clangd set up and working, I know that it's ...
David Carpenter's user avatar
0 votes
0 answers
52 views

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-. ...
chard zy's user avatar
5 votes
2 answers
332 views

Problem I'm trying to use clangd for LSP in Neovim with CUDA .cu files, but it fails to recognize standard C++ library features on the host side. Even simple host functions using std::format, std::...
NeKon's user avatar
  • 314
2 votes
1 answer
147 views

Recently i've been working on some project with GNU arm compiler for C++ project. I've configured clangd to use this compiler with query-driver as clangd documentation recommends. The problem is ...
aleks's user avatar
  • 107
1 vote
0 answers
53 views

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 ...
Mohith's user avatar
  • 105
0 votes
1 answer
100 views

Clangd LSP in Neovim keeps giving C++ diagnostics for an .h file. How do I force it to give C header diagnostics?
qwr's user avatar
  • 11.6k
0 votes
0 answers
48 views

The following is my .clang-format file: IndentWidth: 2 IndentCaseLabels: true AllowShortEnumsOnASingleLine: false ColumnLimit: 100 BinPackArguments: false BinPackParameters: false ...
Joe Scotto's user avatar
  • 11.1k
0 votes
0 answers
213 views

I'm using clangd for an embedded systems project in VS Code because it works way better for what I'm trying to do than Microsoft's C/C++ extension for intellisense (and also I had a few cases where my ...
Some random guy's user avatar
2 votes
0 answers
37 views

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 ...
Robin Jehn's user avatar
1 vote
1 answer
71 views

I have a setup with a project written in C that is statically linked with a library. The sources of the library are in a different folder somewhere else on the system. I am using emacs and lsp-mode ...
Schievel's user avatar
2 votes
1 answer
86 views

I am using Clangd as LSP server. "inlayHint.display": false and "clangd.arguments": ["--function-arg-placeholders=0"]" work to disable the placeholders in functions ...
THE0_C's user avatar
  • 31
0 votes
0 answers
247 views

I am using the Windows 11 operating system. I have both gcc and clang on my computer. My MinGW was downloaded from the winlibs website, but the latest version of MinGW lacks clang, so I downloaded it ...
user26964933's user avatar
1 vote
0 answers
122 views

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 ...
crazy_dave's user avatar
0 votes
0 answers
69 views

I'm trying to set up a VS Code Dev Container using clangd to get proper C++ autocompletion and diagnostics for a project that uses the ANTLR4 C++ runtime. I have a working Docker-based development ...
Bibi Bobo's user avatar
0 votes
2 answers
119 views

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 ...
Socialist2's user avatar
0 votes
1 answer
86 views

I was trying to use clangd to make a tool for LLM Agent to let LLM search for linux-kernel source code. I am using this github project to help me with this. However, when I use textDocument/definition ...
Zj_W1nd's user avatar
  • 11
1 vote
1 answer
127 views

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. "...
xBACP's user avatar
  • 611
2 votes
1 answer
247 views

From what I understand, Clangd relies on the compilation process. This means I need to compile my code periodically to get the most up-to-date syntax error information. (and every time I need to ...
1385wz's user avatar
  • 41
1 vote
1 answer
208 views

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-...
BeigeAlert's user avatar
2 votes
1 answer
518 views

I recently switched from ctags to clangd for better lsp support in neovim. Now clangd doesn't recognize my local include directories. I tried the following .clangd files without success (with the ...
MaxBrandtner's user avatar
2 votes
2 answers
1k views

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: '-...
Tomáš Zato's user avatar
5 votes
1 answer
242 views

I am using clangd in my C++ project. When clangd suggests a function, it also inserts placeholders for the functions: However, when I type a constructor, I only receive the overload window I can ...
Raildex's user avatar
  • 5,428
3 votes
1 answer
143 views

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 ...
jozxyqk's user avatar
  • 17.7k
0 votes
1 answer
1k views

How can I figure out why a reference can't be found by clangd? Can I list the index to understand if what I'm looking for is missing? Clangd docs clangd has this information (see https://clangd.llvm....
Moberg's user avatar
  • 5,656
1 vote
2 answers
212 views

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 (...
Anton A's user avatar
  • 323
1 vote
0 answers
87 views

In an embedded riscv32 mcu's sdk I see the follow function overloading practice: void FLASH_ROM_READ(uint32_t StartAddr, void *Buffer, uint32_t len); void FLASH_ROM_READ(UINT32 StartAddr, PVOID ...
Anton A's user avatar
  • 323
2 votes
1 answer
238 views

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 ...
Muhammad Sulaiman's user avatar
1 vote
1 answer
2k views

I'm setting up a new project in C++ 23. I want to write it fully in modules. Setting up a project i wrote a simple program to check if everything is working well. Here it is: main.cpp: import math; ...
Maksim Victorovich Fomin's user avatar
1 vote
1 answer
179 views

My project level settings.json is like following: "C_Cpp.intelliSenseEngine": "disabled", "C_Cpp.formatting": "clangFormat", "C_Cpp....
soumeng78's user avatar
  • 911
3 votes
1 answer
82 views

Is there an easy way to get entire definition of ValueTy. It it diffcult to complile the single file with -E option. llvm-projct part of Value.h code /// Concrete subclass of this. /// /// An ...
huiiiii's user avatar
  • 31
1 vote
0 answers
53 views

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 (...
aaronfu's user avatar
  • 113
1 vote
1 answer
86 views

P.S. I struggled to find an appropriate title for this question... I am faced with a challenge when using clangd with the CPython project: In the annotated screenshot shown above, macro PyObject_HEAD ...
Yuxuan Zhang's user avatar
0 votes
1 answer
1k views

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 ...
user44791's user avatar
1 vote
1 answer
169 views

I have the following concept: template<typename T, typename MsgType> concept CanSend = requires(T obj) { {obj.send(std::declval<MsgType>())} -> std::same_as<void>; }; template&...
Thornsider3's user avatar
1 vote
1 answer
998 views

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 ...
user28073209's user avatar
1 vote
0 answers
120 views

I have a header in one of my C++ projects that looks like this: #include <QtCore/qglobal.h> This references a header located in Qt/6.7.2/macos/lib/QtCore.framework/Headers. While qglobal.h ...
Eliot Hertenstein's user avatar
0 votes
0 answers
44 views

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 ...
Wang's user avatar
  • 8,436
1 vote
1 answer
401 views

I used UE5 to generate a C++ class and opened it with VSC. Clangd prompted that it could not find "coreminimal.h", but the project could be generated normally. ue seems to automatically ...
RIPTIDE's user avatar
  • 29
0 votes
2 answers
701 views

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: ...
Alexander Kolbeko's user avatar
0 votes
1 answer
216 views

I use VSCodium and gcc complier to develop c++ in linux, clangd server and clangd vscode plugin have been installed. My example code is shown below. QByteArray bytearray; configFile.open(QIODevice::...
elight's user avatar
  • 61
0 votes
1 answer
377 views

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 ...
shaharhoch's user avatar
1 vote
0 answers
130 views

I used the clangd plugin of vscode with cmake to develop C language projects. The clangd plugin provides clang-tidy static detection function. But I have a requirement: Can I ignore the errors in a ...
kanghao chen's user avatar
0 votes
0 answers
374 views

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. ...
AnshUjlayan's user avatar
0 votes
1 answer
227 views

OS : ubuntu22.04 target : use LSP with clangd in neovim problem : unable to find 'iostream' , I have generated a complile_commands.json, but it didn't work too. $ cat compile_commands.json [ { &...
cto L's user avatar
  • 1
2 votes
0 answers
451 views

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 ...
V Friedrich's user avatar
3 votes
1 answer
460 views

I am using clangd with VSCode. Clangd offers the possibility to add missing includes. When doing so, it (sometimes? couldn´t figure out when) automatically adds the relative or absolute path to the ...
SinixND's user avatar
  • 103
0 votes
1 answer
353 views

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, ...
RecReo's user avatar
  • 66
-1 votes
1 answer
1k views

Title says it all. This bear (build ear) The INSTALL.md doesnt say nothing about Windows There is no "release" .exe The CMAKE commands, on INSTALL.md dont work
EnderMega's user avatar
  • 373
0 votes
1 answer
1k views

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 ...
WitHeld's user avatar
  • 349
2 votes
1 answer
696 views

Been using QtCreator for a few years, everything was great. Recently I changed my main dev laptop, and now at every single startup I keep getting this message: "The use of clangd for the C/C++ ...
Pavel Sh's user avatar

1
2 3 4 5 6