Cppcheck: Reduction of False Positives: Manual Approach

Maarten Hoes hoes.maarten at gmail.com
Sun Sep 30 14:06:29 UTC 2018


On Sun, Sep 30, 2018 at 11:29 AM Tamás Zolnai <zolnaitamas2000 at gmail.com>

> I'm not sure what your modification is doing. I just checked the report
> you attached and I compared it with the full report and I see your change
> filters out not only false positives.
Am I interpreting correctly here that the proposed approach of doing this :

$ find . -type d \( -name "inc" -o -name "include" \) |sort > inc.txt
-D__LITTLE_ENDIAN__ -D__x86_64__ -UMACOSX -UFREEBSD -U_WIN32 -i external/
-i workdir/ --includes-file=inc.txt --xml
--suppressions-list=cppcheck_supp.txt --enable=all --max-configs=100  ./
2> ./err.xml

Versus what the cppcheck-report script currently is doing, results in
actual real issues not being reported anymore ? If so, that's bad(TM), and
needs further investigation at the very least before that suggested change
gets implemented.

- Maarten.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20180930/0f23814c/attachment.html>

More information about the LibreOffice mailing list