[PATCH] D16200: Add --force-debug option to scan-build to force debug build and hopefully enable more precise warnings.

Yury Gribov via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 10:53:46 PST 2016


ygribov created this revision.
ygribov added reviewers: zaks.anna, dcoughlin.
ygribov added a subscriber: llvm-commits.
ygribov set the repository for this revision to rL LLVM.
Herald added subscribers: danalbert, tberghammer.

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.

I've checked this on Android where it removed a bunch of false positives and also uncovered several errors which were present only in assertion code (e.g. use-after-free, etc.).

Repository:
  rL LLVM

http://reviews.llvm.org/D16200

Files:
  tools/scan-build/bin/scan-build
  tools/scan-build/libexec/ccc-analyzer
  www/analyzer/scan-build.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16200.44905.patch
Type: text/x-patch
Size: 3434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160114/cb196cb3/attachment.bin>


More information about the llvm-commits mailing list