Windows Clang Static Analyzer

Does anyone have success running a static clang parser on Windows?

I have successfully created llvm and clang (using VS 2008). Running scan-assembly results in the following error:

The getpwuid function is unimplemented at scan-build line 35.

Some studies show that getpwuid is not supported on Windows platforms.

+5
source share
1 answer

change the call to ...

my $UserName =  HtmlEscape('unknown')

scan-build is a perl script, so some convenient fixes will be required to complete a scan build on windows. it

-> specify these variables to view the absolute physical path

my $ClangSB, my $Clang; $Dir = "/tmp"; my $Cmd ; and my $CmdCXX

, $Cmd; $CmdCXX - ccc- ++-... perl-, , , perl -w .

...

! -x $blaBla ...

- >

open(PIPE, "-|", $Clang, "-cc1", "-help") or

to

open(PIPE, "-|", "$Clang"." -cc1"." -help") or

, scan-build ..:)

+3

All Articles