[cfe-dev] Clang 3.3: --analyze produces object file full of XML (plist)

Jonathan Sauer jonathan.sauer at gmx.de
Sun Sep 22 23:42:22 PDT 2013


Hello,

> This is even easier to duplicate:
> 
> $ touch event.c
> ...
> $ cat event.c
> #include <stdio.h>
> int main(int argc, char* argv[]) {
> 
>    return !argc;
> }
> 
> $ /usr/local/bin/clang --analyze event.c -o event.exe
> $ file event.exe
> event.exe: XML document text
> $

As far as I know when running the static analyzer (which --analyze does) clang outputs
an XML or HTML file with the analyzer's result, not machine code. So I would guess
everything works as intended.

What is the result you expect?


HTH,
Jonathan





More information about the cfe-dev mailing list