openbsd-ports/devel/llvm/pkg/MESSAGE
sthen 136611c6f3 import llvm/clang. not heavily tested yet but there's been a lot
of interest in the static analyser and it basically works, so put
it in now and link to the build later.

Low Level Virtual Machine (LLVM) is:
- A compilation strategy designed to enable effective program
  optimization across the entire lifetime of a program.
- A virtual instruction set.
- A compiler infrastructure.
- LLVM does not imply things that you would expect from a high-level
  virtual machine. It does not require garbage collection or run-time
  code generation.

some parts from chl@ and the FreeBSD port.
2008-11-10 11:25:33 +00:00

11 lines
408 B
Plaintext

For more information about using scan-build for the static
analyser, look at http://clang.llvm.org/StaticAnalysisUsage.html
For instance, the scanner on the kernel build can be launched with:
cd /usr/src/sys/arch/`uname -m`/conf && config GENERIC.MP
cd /usr/src/sys/arch/`uname -m`/compile/GENERIC.MP
make clean && make depend && scan-build make
This will generate HTML reports in /tmp/scan-build-(date).