[cfe-commits] r95425 - /cfe/trunk/tools/scan-build/scan-build

Ted Kremenek kremenek at apple.com
Fri Feb 5 12:34:14 PST 2010


Author: kremenek
Date: Fri Feb  5 14:34:14 2010
New Revision: 95425

URL: http://llvm.org/viewvc/llvm-project?rev=95425&view=rev
Log:
Fix how scan-build finds c++-analyzer to work with checker builds.

Modified:
    cfe/trunk/tools/scan-build/scan-build

Modified: cfe/trunk/tools/scan-build/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/scan-build?rev=95425&r1=95424&r2=95425&view=diff

==============================================================================
--- cfe/trunk/tools/scan-build/scan-build (original)
+++ cfe/trunk/tools/scan-build/scan-build Fri Feb  5 14:34:14 2010
@@ -82,18 +82,18 @@
 
 # Find 'clang'
 my $ClangSB = Cwd::realpath("$RealBin/bin/clang");
-my $ClangCXXSB;
 if (!defined $ClangSB || ! -x $ClangSB) {
   $ClangSB = Cwd::realpath("$RealBin/clang");
-  if (defined $ClangSB) { $ClangCXXSB = $ClangSB . "++"; }
 }
-my $Clang = $ClangSB;
-my $ClangCXX = $ClangCXXSB;
-# Default to looking for 'clang' in the path.
-if (!defined $Clang || ! -x $Clang) {
+my $Clang;
+if (!defined $ClangSB || ! -x $ClangSB) {
+  # Default to looking for 'clang' in the path.
   $Clang = "clang";
-  $ClangCXX = "clang++";
 }
+else {
+  $Clang = $ClangSB;
+}
+my $ClangCXX = $Clang . "++";
 
 my %AvailableAnalyses;
 





More information about the cfe-commits mailing list