[analyzer] Add --force-analyze-debug-code option to scan-build
authorYury Gribov <y.gribov@samsung.com>
Thu, 18 Feb 2016 11:08:46 +0000 (11:08 +0000)
committerYury Gribov <y.gribov@samsung.com>
Thu, 18 Feb 2016 11:08:46 +0000 (11:08 +0000)
commita6560ebe4c4bc540d6eb8cbfd60fe0788194c90c
tree99b77dd582cb9a9ac123067ae1394010bf8cd7e5
parent9c4ed175c2055711b1a2d8a4d1a1575b9a5e41fb
[analyzer] Add --force-analyze-debug-code option to scan-build
to force debug build and hopefully enable more precise warnings.

Static Analyzer is much more efficient when built in debug mode
(-UNDEBUG) so we advice users to enable it manually. This may be
inconvenient in case of large complex projects (think about Linux
distros e.g. Android or Tizen). This patch adds a flag to scan-build
which inserts -UNDEBUG automatically.

Differential Revision: http://reviews.llvm.org/D16200

llvm-svn: 261204
clang/tools/scan-build-py/libscanbuild/analyze.py
clang/tools/scan-build-py/libscanbuild/runner.py
clang/tools/scan-build-py/tests/unit/test_runner.py
clang/tools/scan-build/bin/scan-build
clang/tools/scan-build/libexec/ccc-analyzer
clang/www/analyzer/scan-build.html