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

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Oct 10 14:43:27 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=39596

--- Comment #37 from Maarten Hoes <hoes.maarten at gmail.com> ---
Well, I finally got around to testing this, and the '--exclude' option seems to
work as expected. If you run 'scan-build' with (among others) these options :

--exclude $src/*/UnpackedTarball/* --exclude $src/workdir/* --exclude
$src/instdir/* --exclude $src/external/

then the 3th party code does not end up in the final report.

So you can now run ./autogen with '--without-system-libs
--without-system-headers' so you get the needed packages in the right versions
during the build, and in combination with the mentioned '--exclude' options
without them ending up in the final report. You do need clang9 (or newer)
though, older versions do not have the '--exclude' option for scan-build.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201010/06514940/attachment.htm>


More information about the Libreoffice-bugs mailing list