[cfe-dev] Clang static analysis under VisualStudio2012

bataliero1234 a1463431 at trbvm.com
Fri Aug 29 06:37:06 PDT 2014


Visual runs clang-cl.exe. Is it possible to force clang-cl to invoke 
--analyze argument in clang.exe. ?

>clang.exe --analyze main.c
Works correctly. But when I modify main.c and include "windows.h" I get
>"main.c:2:10: fatal error: 'windows.h' file not found"


I have tried "-Xclang <arg>         Pass <arg> to the clang compiler"
> CL.exe -Xclang --analyze main.c
>error: unknown argument: '--analyze'

but it doesn't help.



--
View this message in context: http://clang-developers.42468.n3.nabble.com/Clang-static-analysis-under-VisualStudio2012-tp4041403p4041456.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list