[Libreoffice-bugs] [Bug 39596] [EasyHack] use the CLang++ static analyser to find bugs

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Nov 20 23:10:45 CET 2011


--- Comment #1 from Allan Jacobs <jacobsallanster at gmail.com> 2011-11-20 14:10:45 PST ---
Bjorn is correct about the ease of adding clang.  Making with clang is not an
easy hack.

Suppose <args> are the arguments used in the absence of scan-build.  The steps
are as follows:
(1) Hack core/autogen.sh so that scan-build './configure <args>' is run instead
of './configure <args>'. First, change 
    my @args;
    my @args;
    push @args, "./configure";

Then, change 
    system ("./configure", @args) && die "Error running configure";
    system ("scan-build", @args) && die "Error running configure";
(2) cd core; sh ./autogen.sh
(3) Instead of running 'make' from the command line, run 'scan-build make'.

On my computer, I can get to step 
    (47/157) Building module berkeleydb
... and then my computer crashes.  I'm running with Ubuntu 11.10 on a 4-core
machine with 8 GB of RAM.

Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the Libreoffice-bugs mailing list