From 5a3581daf22f9b9d0025093b07c35a08cceeae6c Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Sat, 25 Aug 2012 05:24:46 +0000 Subject: [PATCH] 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 --- tools/scan-build/scan-build | 10 +++++----- 1 file 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 { -- 2.50.1