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

Ted Kremenek kremenek at apple.com
Fri Aug 24 22:24:46 PDT 2012


Author: kremenek
Date: Sat Aug 25 00:24:46 2012
New Revision: 162640

URL: http://llvm.org/viewvc/llvm-project?rev=162640&view=rev
Log:
Change --with-analyzer to --use-analyzer, per sage feedback from Jordan.

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=162640&r1=162639&r2=162640&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/scan-build (original)
+++ cfe/trunk/tools/scan-build/scan-build Sat Aug 25 00:24:46 2012
@@ -1080,8 +1080,8 @@
  
    Generate internal analyzer statistics.
  
- --with-analyzer [Xcode|path to clang] 
- --with-analyzer=[Xcode|path to clang]
+ --use-analyzer [Xcode|path to clang] 
+ --use-analyzer=[Xcode|path to clang]
  
    scan-build uses the 'clang' executable relative to itself for static
    analysis. One can override this behavior with this option by using the
@@ -1435,12 +1435,12 @@
     push @PluginsToLoad, "-load", shift @ARGV;
     next;
   }
-  if ($arg eq "--with-analyzer") {
+  if ($arg eq "--use-analyzer") {
  	shift @ARGV;
   	$AnalyzerDiscoveryMethod = shift @ARGV;
 	next;
   }
-  if ($arg =~ /^--with-analyzer=(.+)$/) {
+  if ($arg =~ /^--use-analyzer=(.+)$/) {
     shift @ARGV;
 	$AnalyzerDiscoveryMethod = $1;
 	next;
@@ -1469,7 +1469,7 @@
   }
   if (!defined $Clang || ! -x $Clang) {
     DieDiag("error: Cannot find an executable 'clang' relative to scan-build." .
-   	        "  Consider using --with-analyzer to pick a version of 'clang' to use for static analysis.\n");
+   	        "  Consider using --use-analyzer to pick a version of 'clang' to use for static analysis.\n");
   }
 } 
 else {  





More information about the cfe-commits mailing list