Allow user toggling between plist and html output with scan-build/ccc-analyzer.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58657 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer
index 9f07009..e03a78b 100755
--- a/utils/ccc-analyzer
+++ b/utils/ccc-analyzer
@@ -244,6 +244,9 @@
 # Get the store model.
 my $StoreModel = $ENV{'CCC_ANALYZER_STORE_MODEL'};
 
+# Get the output format.
+my $OutputFormat = $ENV{'CCC_ANALYZER_OUTPUT_FORMAT'};
+
 # Determine the level of verbosity.
 my $Verbose = 0;
 if (defined $ENV{CCC_ANALYZER_VERBOSE}) { $Verbose = 1; }
@@ -422,6 +425,10 @@
     if (defined $StoreModel) {
       push @AnalyzeArgs, $StoreModel;
     }
+    
+    if (defined $OutputFormat) {
+      push @AnalyzeArgs, "-analyzer-output-" . $OutputFormat;
+    }
 
     push @AnalyzeArgs,@CompileOpts;
     push @AnalyzeArgs,$file;