3

I'm using CMake with clang to compile. I'm using only the clangd VSCode extension (i.e., not using any other C++ extensions).

In the "Problems" window, which is powered by VSCode and not compiler output (so there's not an issue with my CMake stuff or compile_commands.json, because I don't even have to compile to see the Problems messages):

  • Some error blah blah - clang [Ln x, Col y]
  • Some error blah blah - GCC [Ln x, Col y]

The first error is presumably from clangd and I want to keep it. How can I get rid of the second error? I'm not using GCC anywhere in my build, so I don't know how it got there.

Thanks!

rioV8
  • 24,506
  • 3
  • 32
  • 49
user5406764
  • 1,627
  • 2
  • 16
  • 23

1 Answers1

-1

You can use the filter in the "problems" tab. Write clang to remove gcc entries.

Sunny
  • 24
  • This doesn't remove the errors, it just hides them. Also they are still shown in the editor. – arkuuu Mar 16 '23 at 15:45