[cfe-dev] Dumping CFG with clang -cc1 -analyze -analyzer-checker=debug.ViewCFG code.c
ganna at apple.com
Thu Feb 28 22:40:47 PST 2013
Copying my answer from [cfe-users]:
The idea is that debug.ViewCFG would open the viewer and display the graph (this is why the file is stored into a tmp directory). Whereas debug.DumpCFG dumps the textual version to the standard out. Both are debugging aids and I don't think there is a command line option to store the output into a particular directory.
On Feb 28, 2013, at 8:18 PM, Prateek Saxen <thisisprateeksaxena at gmail.com> wrote:
> When dumping CFG using the above-mentioned option, I get the following output on the screen:
> $ Writing '/tmp/llvm_IqkHDb/CFG.dot'... done.
> I want to CFG.dot file to be created a particular directory instead of /tmp/llvm_*random*/.
> How do I specify this information in the command?
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev