Jumping to C++ error works in VSCode when using cl, but not clang-cl (using the -FC flag)

  c++, cl, clang-cl, visual-studio-code

I have the following line for a simple build:

cl -FC "../main.cpp" /link /SUBSYSTEM:CONSOLE

If there is an error in the program, I can alt/ctrl-click the error, and jump right to it. However, if I change the build line to the following, it doesn’t jump to the error, and instead pops up "../main.cpp" at the top in the command palette, and says "No matching results":

clang-cl -FC "../main.cpp" /link /SUBSYSTEM:CONSOLE

I’m not sure if this is caused by some VSCode setting, or if it’s something I need to add to clang-cl

Source: Windows Questions C++

LEAVE A COMMENT