Added --use-cc option to scan-build to allow the user to specify what compiler they want to use for code compilation.

llvm-svn: 55142
diff --git a/clang/utils/ccc-analyzer b/clang/utils/ccc-analyzer
index d41978c..c760a86 100755
--- a/clang/utils/ccc-analyzer
+++ b/clang/utils/ccc-analyzer
@@ -184,7 +184,9 @@
 my $Output;
 
 # Forward arguments to gcc.
-my $Status = system("gcc",@ARGV);
+my $CC = $ENV{'CCC_CC'};
+if (!defined $CC) { $CC = "gcc"; }
+my $Status = system($CC,@ARGV);
 if ($Status) { exit($Status); }
 
 # Get the analysis options.