]> granicus.if.org Git - clang/commit
[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)
commit19b977bcdf62a9f6fca2c115fd85d2508f4a818b
tree374e6633bb249255b0145f0981f103370ca63064
parentdcd61b3089babf56947b8be5487e410ac195b380
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261204 91177308-0d34-0410-b5e6-96231b3b80d8
tools/scan-build-py/libscanbuild/analyze.py
tools/scan-build-py/libscanbuild/runner.py
tools/scan-build-py/tests/unit/test_runner.py
tools/scan-build/bin/scan-build
tools/scan-build/libexec/ccc-analyzer
www/analyzer/scan-build.html