OK, I’ve looked through all of the past references to this issue on CD and I’ve still not been able to find a solution for C++ on WinDoze. After much digging, it appears that the issue is a missing “sal.h” file being referenced from Compiler.h in code related to the llvm (clang) compiler. I don’t have clang installed deliberately. But, it appears that the WPILib somehow references it. I get red squiggles on Robot.h having just created a TimedRobot example from the template. The sal.h reference appears to be brought in in a block that looks like:
#if defined (_MSC_VER)
sal.h is part of MicroSloth’s “source-code annotation language” that’s part of the Visual Studio tool.
So, somewhere in WPILib there is a reference to clang that then looks to see if the Microsoft C compiler is installed and then tries to include a non-existent header file. Once it’s referenced in Robot.h, a bunch of other header files also complain about the missing sal.h file. Has anyone developed a fix for this? I’m using the 2020.2.2 code installation.