Menu

Error suppress all files with given suffix

penguish
2016-05-20
2016-05-26
  • penguish

    penguish - 2016-05-20

    Hi,
    I'm trying to suppress (using an error supression file), all errors in files ending in suffix ".C"; I tried
    *:*/*.C*
    but without success.
    Similarly I'd like to suppress all files on a given group of paths containing */Macro/* with

    *:*/Macro/*
    

    but similarly without success, so I guess I misunderstood the format...

     

    Last edit: penguish 2016-05-20
  • Steven Cook

    Steven Cook - 2016-05-25

    I've had the same problem with suppressing all errors for files with a given suffix, and ended up having to specify the rule for each directory. For example:
    *:src/Module1/*xx
    *:src/Module2/*xx

     

    Last edit: Steven Cook 2016-05-25
  • Daniel Marjamäki

    Hi!

    This sounds like a bug in Cppcheck. Could you please create a ticket (defect) in our bugdatabase so we don't forget this? http://trac.cppcheck.net

    I am afraid it might take time to fix it.. so if you have time to investigate how it can be solved that would be much appreciated.

     
  • Steven Cook

    Steven Cook - 2016-05-26

    It seems it has already been fixed. It was definitely a problem a while ago when I created my suppressions list (possibly as long ago as cppcheck 1.53). The following now work for me with cppcheck 1.73:

    *:*/Module/*xx
    *:*xx
    *:*/*.?xx
    
     

Log in to post a comment.