Static src analysis of LibreOffice

John Smith lbalbalba at gmail.com
Wed Aug 15 09:43:33 PDT 2012


Hi,


Well I finally managed to do a 'scan-build' src analysis of
LibreOffice ~master, using clang as the compiler instead of GCC. There
still are a few files where analysis failed and clang crashed, but
those are only a few (and I submitted a bug report for that at
http://llvm.org/bugs/show_bug.cgi?id=13614).

The report still includes bits of dbuild, as that still seems to get
included in a build. The rest of the ./configure flags were :

--disable-ccache
As I couldnt get the clang compiler to play nice with ccache cached files.

--enable-debug
I assumed people would want to include debug code as well.

--with-system-libcmis=no
The system libcmis is the same version as the inculded one(0.2.3),
but... the included one seems to add a few patches that are required
for libreoffice, forcing the use of the included version.

--with-system-libs
As most people didnt want the results to include 3rd party code.

--with-system-hsqldb=no --with-system-saxon=no
I have been told that the internal version of those are special cases
where the internal always are required.


The full report is at :
http://lbalbalba.x90x.net/clang-analyzer/libreoffice-with-clang/



Have fun,




Regards,


John Smith.


More information about the LibreOffice mailing list