[cfe-commits] r53053 - in /cfe/trunk/utils: ccc-analyzer scan-build
Ted Kremenek
kremenek at apple.com
Wed Jul 2 16:16:11 PDT 2008
Author: kremenek
Date: Wed Jul 2 18:16:10 2008
New Revision: 53053
URL: http://llvm.org/viewvc/llvm-project?rev=53053&view=rev
Log:
ccc-analyzer now dispatches the options "-checker-cfref" and "-warn-dead-stores" to clang instead of just "-checker-cfref".
Modified:
cfe/trunk/utils/ccc-analyzer
cfe/trunk/utils/scan-build
Modified: cfe/trunk/utils/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc-analyzer?rev=53053&r1=53052&r2=53053&view=diff
==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Wed Jul 2 18:16:10 2008
@@ -70,7 +70,7 @@
i += 1
if verbose == 2:
- print >> sys.stderr, '#SHELL (cd ' + os.getcwd() + ' && ' + ' '.join(command + print_args) + ')\n'
+ print >> sys.stderr, '#SHELL (cd ' + os.getcwd() + ' && ' + ' '.join(print_args) + ')\n'
if RunAnalyzer and htmldir is not None:
args.append('-o')
@@ -81,7 +81,7 @@
if verbose == 1:
# We MUST print to stderr. Some clients use the stdout output of
# gcc for various purposes.
- print >> sys.stderr, ' '.join(command+print_args)
+ print >> sys.stderr, ' '.join(print_args)
print >> sys.stderr, '\n'
subprocess.call(args)
@@ -136,7 +136,7 @@
if analysis_type is not None:
analysis_type = "-" + analysis_type
else:
- analysis_type = "-checker-cfref"
+ analysis_type = "-warn-dead-stores -checker-cfref"
# Determine the level of verbosity.
if os.environ.get('CCC_ANALYZER_VERBOSE') is not None:
@@ -152,10 +152,7 @@
clang = clang_env
# Get the HTML output directory.
- htmldir = None
-
- if analysis_type == "-checker-cfref":
- htmldir = os.environ.get('CCC_ANALYZER_HTML')
+ htmldir = os.environ.get('CCC_ANALYZER_HTML')
# Process the arguments.
i = 0
Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=53053&r1=53052&r2=53053&view=diff
==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Wed Jul 2 18:16:10 2008
@@ -634,7 +634,7 @@
my $HtmlDir; # Parent directory to store HTML files.
my $IgnoreErrors = 0; # Ignore build errors.
my $ViewResults = 0; # View results when the build terminates.
-my $Analysis = "checker-cfref";
+my $Analysis;
if (!@ARGV) {
DisplayHelp();
@@ -753,7 +753,9 @@
$ENV{'CCC_ANALYZER_LOG'} = 1;
}
-$ENV{'CCC_ANALYZER_ANALYSIS'} = $Analysis;
+if (defined($Analysis)) {
+ $ENV{'CCC_ANALYZER_ANALYSIS'} = $Analysis;
+}
# Run the build.
More information about the cfe-commits
mailing list