79661229

Date: 2025-06-10 23:33:49
Score: 1
Natty:
Report link

As far as I can tell, the linked page is inaccurate and Visual Studio does not actually query the compiler set by CMake for anything. When setting the intellisenseMode as described in the docs, that tells VS to use a proto-compiler built into Intellisense as the compiler for showing intellisense info.

Some evidence for this is when changing the intellisense mode to other values magically shows values for compilers that exist nowhere on my machine.

"intelliSenseMode": "linux-gcc-x64" shows this: linux-gcc-x64 showing VERSION as 5.4.1 20160413

"intelliSenseMode": "linux-gcc-x86" shows this: linux-gcc-x86 showing VERSION as "4.2.1 Compatible Clang 6.0"

So in conclusion, this is just not possible. Microsoft, please stop lying about what your products actually do.

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: JMekker