Windows, SDL3.2.4: SDL/SDL_stdinc.h
has a problem with clang-tidy.exe
#12238
Milestone
SDL/SDL_stdinc.h
has a problem with clang-tidy.exe
#12238
Problem
In both of genuine VC++2022 and LLVM environment,
clang-tidy.exe
reports the following error:Reproduction
Reproduce the issue with Visual Studio Community 2022 Preview
hello.c
C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\Llvm\x64\bin\clang-tidy.exe
reports the following errorBasic analysis
clang-cl.exe
+clang-tidy.exe
environment predefines the following symbols.Therefore, the following
#if
is always trueSDL/include/SDL3/SDL_stdinc.h
Line 5945 in 725ee76
But typical Windows environment doesn't have
<strings.h>
.SDL/include/SDL3/SDL_stdinc.h
Line 5972 in 725ee76
Environment information
main
branch, commit 9b18e84The text was updated successfully, but these errors were encountered: