[PATCH] Add scan-build python implementation

Laszlo Nagy rizsotto.mailinglist at gmail.com
Tue Jun 16 02:38:27 PDT 2015


this change try to address the review findings by @dcoughlin.

- it implements two new ways of operation. now it has the following modes:

- installed two-phase mode (using libear dynamic linker preload technique)
  - it has the less overhead
  - works on FreeBSD/Linux/OSX
  - it works with many build system
- non-installed two-phase mode (using compiler wrapper for interception)
  - no benefit other than, it supports non installed mode
  - it works build system which are using CC/CXX environment variables
- non-installed one-phase mode (using compiler wrapper)
  - it supports build systems that move or modify build system intermediates
  - it works build system which are using CC/CXX environment variables

tried to address other acceptance criteria as well:

- it was also tuned to be more compatible with the existing scan-build implementation.
- tested against Clang builds (in multiple operation modes)
- supports installation less mode (see above), supports multiple Clang installation

run against the SATestBuild.py needs more explanation. (maybe a README file in that directory would be better than a skype call.)


http://reviews.llvm.org/D9600

Files:
  tools/scan-build-py/bin/analyze-build
  tools/scan-build-py/bin/analyze-c++
  tools/scan-build-py/bin/analyze-cc
  tools/scan-build-py/bin/intercept-build
  tools/scan-build-py/bin/intercept-c++
  tools/scan-build-py/bin/intercept-cc
  tools/scan-build-py/bin/scan-build
  tools/scan-build-py/libear/config.h.in
  tools/scan-build-py/libear/ear.c
  tools/scan-build-py/libscanbuild/driver.py
  tools/scan-build-py/libscanbuild/intercept.py
  tools/scan-build-py/libscanbuild/interposition.py
  tools/scan-build-py/libscanbuild/options.py
  tools/scan-build-py/libscanbuild/report.py
  tools/scan-build-py/libscanbuild/runner.py
  tools/scan-build-py/setup.py
  tools/scan-build-py/tests/functional/cases/__init__.py
  tools/scan-build-py/tests/functional/cases/test_create_cdb.py
  tools/scan-build-py/tests/functional/cases/test_exec_anatomy.py
  tools/scan-build-py/tests/functional/cases/test_from_cdb.py
  tools/scan-build-py/tests/functional/cases/test_from_cmd.py
  tools/scan-build-py/tests/unit/test_report.py

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9600.27754.patch
Type: text/x-patch
Size: 44333 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150616/2fdce648/attachment.bin>


More information about the cfe-commits mailing list