Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
49 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
0 answers
113 views

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 ...
Kai R.'s user avatar
  • 1
1 vote
0 answers
46 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
0 answers
47 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
2 votes
0 answers
33 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
2 votes
1 answer
80 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
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
2 answers
111 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
1 vote
1 answer
124 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
1 vote
1 answer
194 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
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
  • 53.9k
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
1 vote
2 answers
210 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
  • 313
2 votes
1 answer
233 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
174 views

My project level settings.json is like following: "C_Cpp.intelliSenseEngine": "disabled", "C_Cpp.formatting": "clangFormat", "C_Cpp....
soumeng78's user avatar
  • 911
1 vote
0 answers
49 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
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
981 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
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,426
0 votes
2 answers
691 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
367 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
0 votes
0 answers
371 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
2 votes
0 answers
445 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
0 votes
1 answer
335 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
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

1
2 3 4 5 6