[cfe-commits] r162625 - /cfe/trunk/tools/scan-build/scan-build
Ted Kremenek
kremenek at apple.com
Fri Aug 24 16:42:58 PDT 2012
Author: kremenek
Date: Fri Aug 24 18:42:58 2012
New Revision: 162625
URL: http://llvm.org/viewvc/llvm-project?rev=162625&view=rev
Log:
Fix a few issues related to -with-analyzer reported by Jordan. Let's
have the option with two '--' to be consistent with other options.
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=162625&r1=162624&r2=162625&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/scan-build (original)
+++ cfe/trunk/tools/scan-build/scan-build Fri Aug 24 18:42:58 2012
@@ -1080,8 +1080,8 @@
Generate internal analyzer statistics.
- -with-analyzer [Xcode|path to clang]
- -with-analyzer=[Xcode|path to clang]
+ --with-analyzer [Xcode|path to clang]
+ --with-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 "--with-analyzer") {
shift @ARGV;
$AnalyzerDiscoveryMethod = shift @ARGV;
next;
}
- if ($arg =~ /^-with-analyzer=(.+)$/) {
+ if ($arg =~ /^--with-analyzer=(.+)$/) {
shift @ARGV;
$AnalyzerDiscoveryMethod = $1;
next;
@@ -1473,7 +1473,7 @@
}
}
else {
- if ($AnalyzerDiscoveryMethod =~ /^[X,x]code$/) {
+ if ($AnalyzerDiscoveryMethod =~ /^[Xx]code$/) {
my $xcrun = `which xcrun`;
chomp $xcrun;
if ($xcrun eq "") {
More information about the cfe-commits
mailing list