Dumping CFG with clang -cc1 -analyze -analyzer-checker=debug.ViewCFG code.c

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?

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.

Cheers,
Anna.