LLVM can create graphs in Graphviz‘s “dot” format, and automatically invoke a viewer to display them. By default it uses dotty to display those graphs. I know that I can change it to use a different viewer, but I was not able to find precise instructions on how to do so.
How can I make it open the graphs with a different viewer?
I’m running on Linux but would be interested in an answer for Windows as well.
I found out I’m supposed to change the
CMakeCache.txtfile in my build folder. For instance, to use XDot instead of dotty, I edited theLLVM_PATH_XDOT_Pproperty in that file to point to the full path of myxdot.pyfile.It now opens the alternative viewer successfully, after rebuilding the project.