Menu

CPPCheck used to tell us when a suppression was no longer needed. Is that a configuration deal or no longer an option?

2024-04-29
2024-05-01
  • Steve Albright

    Steve Albright - 2024-04-29

    Here are some typical options I use

        -e "all" \
        -s "checkersReport" \
        -s "missingIncludeSystem" \
        -s "missingInclude" \
        -s "normalCheckLevelMaxBranches" \
        -s "syntaxError" \
        -s "unknownMacro" \
        -s "unmatchedSuppression" \
        -s "unusedFunction" \
    

    and I did try removing some like unmatched but it didn't seem to work either.

     
  • CHR

    CHR - 2024-04-29

    This seems to work as expected:

    --enable=all --inline-suppr --suppress="checkersReport" --suppress="missingIncludeSystem" --suppress="missingInclude" --suppress="normalCheckLevelMaxBranches" --suppress="syntaxError" --suppress="unknownMacro" --suppress="unmatchedSuppression" --suppress="unusedFunction"
    

    Not sure where those short-form options come from.

     
  • Oliver Stöneberg

    I assume -j is involved. The whole unmatchedSuppresion stuff was only working by chance and I am trying to fix that but it is progressing slowly. I have one more PR pending and afterwards it should finally working as expected in general and (hopefully) only needs some more handling for the case where you use processed (default and only available on Linux) to perform the analysis.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.