Index: tools/scan-build/bin/scan-build
===================================================================
--- tools/scan-build/bin/scan-build
+++ tools/scan-build/bin/scan-build
@@ -69,7 +69,8 @@
MaxLoop => 0,
PluginsToLoad => [],
AnalyzerDiscoveryMethod => undef,
- OverrideCompiler => 0 # The flag corresponding to the --override-compiler command line option.
+ OverrideCompiler => 0, # The flag corresponding to the --override-compiler command line option.
+ ForceDebug => 0
);
lock_keys(%Options);
@@ -951,7 +952,8 @@
'CCC_CC',
'CCC_CXX',
'CCC_REPORT_FAILURES',
- 'CLANG_ANALYZER_TARGET') {
+ 'CLANG_ANALYZER_TARGET',
+ 'CCC_ANALYZER_FORCE_DEBUG_CODE') {
my $x = $EnvVars->{$var};
if (defined $x) { $ENV{$var} = $x }
}
@@ -1118,6 +1120,11 @@
Also analyze functions in #included files. By default, such functions
are skipped unless they are called by functions within the main source file.
+ --force-debug
+
+ Tells analyzer to enable assertions in code even if they were disabled
+ during compilation (to hopefully get more precise results).
+
-o
+Another option is to use --force-debug flag of scan-build tool
+which would try to enable assertions automatically.
+
Use verbose output when debugging scan-build
scan-build takes a -v option to emit verbose output about