Added Ubigraph visualization for the static analyzer (this is pretty alpha quality).


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55442 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index fad1624..8b24474 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -159,11 +159,15 @@
 //===----------------------------------------------------------------------===//
 
 static llvm::cl::opt<bool>
-VisualizeEG("visualize-egraph",
-            llvm::cl::desc("Display static analysis Exploded Graph"));
+VisualizeEGDot("analyzer-viz-egraph-graphviz",
+               llvm::cl::desc("Display exploded graph using GraphViz"));
 
 static llvm::cl::opt<bool>
-AnalyzeAll("checker-opt-analyze-headers",
+VisualizeEGUbi("analyzer-viz-egraph-ubigraph",
+               llvm::cl::desc("Display exploded graph using Ubigraph"));
+
+static llvm::cl::opt<bool>
+AnalyzeAll("analyzer-opt-analyze-headers",
     llvm::cl::desc("Force the static analyzer to analyze "
                    "functions defined in header files"));
 
@@ -964,8 +968,8 @@
                                     &AnalysisList[0]+AnalysisList.size(),
                                     Diag, PP, PPF, LangOpts,
                                     AnalyzeSpecificFunction,
-                                    OutputFile, VisualizeEG, TrimGraph,
-                                    AnalyzeAll);
+                                    OutputFile, VisualizeEGDot, VisualizeEGUbi,
+                                    TrimGraph, AnalyzeAll);
   }
 }