aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-08-25 05:24:46 +0000
committerTed Kremenek <kremenek@apple.com>2012-08-25 05:24:46 +0000
commit5a3581daf22f9b9d0025093b07c35a08cceeae6c (patch)
treecfeeb594aacc8491ddd7aac7b7ead1afd926724c
parentfb609141376e0d53646a71948861ebae18aba06e (diff)
Change --with-analyzer to --use-analyzer, per sage feedback from Jordan.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162640 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xtools/scan-build/scan-build10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build
index d62ef0323e..183a0ec8fa 100755
--- a/tools/scan-build/scan-build
+++ b/tools/scan-build/scan-build
@@ -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 {