Describe the bug
After updating to 16.8.0 Preview 3, I've been getting strange errors from Clang-Tidy. Fearing it was some weird interaction between my MSBuild config, .clang-tidy, the Unity build, or project structure, I tried a simple x64 console project right from the templates and managed to get the same error:
Build started...
1>------ Build started: Project: ClangTidyIssue, Configuration: Debug x64 ------
1>ClangTidyIssue.cpp
Error while processing C:\Darkmere\experiments\ClangTidyIssue\ClangTidyIssue.cpp.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.28.29304\include\intrin.h(56,1): error G7973E533: expected function body after function declarator [clang-diagnostic-error]
__MACHINE(void * _AddressOfReturnAddress(void))
^
Suppressed 1 warnings (1 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
Found compiler error(s).
1>Done building project "ClangTidyIssue.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Command-line test case
Just create a new Console Application, Enable Code Analysis on build and Clang-Tidy, build in x64/Debug.
Expected behavior
No compile failures ([clang-diagnostic-error]) every time intrin.h is included.
STL version
Microsoft Visual Studio Community 2019 Preview Version 16.8.0 Preview 3.0