I installed clang with Visual Studio and then built the highlighted project as it's said in the documentation.
The build was successful, however when I try this:
clang -cc1 -analyze -analyzer-checker=core.DivideZero test.c
It says:
test.c:1:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^~~~~~~~~
1 error generated.
I tried many suggestions but nothing worked.
However if I do something like this it works
clang --analyze text.c
I don't know if this uses all the available checkers. I need to write my own checker and test it...
Any ideas?
Output of clang --version
clang version 7.0.0 (trunk 322536)
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\path\build\Debug\bin