# Set the analyzer flag.
analysis_type = os.environ.get('CCC_ANALYZER_ANALYSIS')
- if analysis_type is not None:
- analysis_type = "-" + analysis_type
- else:
- analysis_type = "-warn-dead-stores -checker-cfref -warn-objc-methodsigs"
+ if analysis_type is None:
+ analysis_type = "-checker-cfref"
# Determine the level of verbosity.
if os.environ.get('CCC_ANALYZER_VERBOSE') is not None:
my %AnalysesDefaultEnabled = (
'-warn-dead-stores' => 1,
'-checker-cfref' => 1,
- '-warn-objc-methodsigs' => 1
+ '-warn-objc-methodsigs' => 1,
+ '-warn-objc-missing-dealloc' => 1
);
##----------------------------------------------------------------------------##
$ENV{'CCC_ANALYZER_LOG'} = 1;
}
-if (scalar(@AnalysesToRun)) {
- $ENV{'CCC_ANALYZER_ANALYSIS'} = join ' ',@AnalysesToRun;
+if (scalar(@AnalysesToRun) == 0) {
+ foreach my $key (keys %AnalysesDefaultEnabled) {
+ push @AnalysesToRun,$key;
+ }
}
+$ENV{'CCC_ANALYZER_ANALYSIS'} = join ' ',@AnalysesToRun;
+
# Run the build.
my $ExitStatus = RunBuildCommand(\@ARGV, $IgnoreErrors, $Cmd);