]> granicus.if.org Git - clang/commitdiff
Change --with-analyzer to --use-analyzer, per sage feedback from Jordan.
authorTed Kremenek <kremenek@apple.com>
Sat, 25 Aug 2012 05:24:46 +0000 (05:24 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 25 Aug 2012 05:24:46 +0000 (05:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162640 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-build/scan-build

index d62ef0323ea542021081dce3b026e2054c5546e5..183a0ec8fa24531803c605bfa37535849dbe9ca0 100755 (executable)
@@ -1080,8 +1080,8 @@ ADVANCED OPTIONS:
  
    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 @@ while (@ARGV) {
     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 $AnalyzerDiscoveryMethod) {
   }
   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 {