cppcheckdata.py - support for missing file name in suppression (#1286)
This commit is contained in:
parent
5ad1b2bdd1
commit
c30f21ed2a
|
@ -484,7 +484,7 @@ class Suppression:
|
|||
self.symbolName = element.get('symbolName')
|
||||
|
||||
def isMatch(self, file, line, message, errorId):
|
||||
if (fnmatch(file, self.fileName)
|
||||
if ((self.fileName is None or fnmatch(file, self.fileName))
|
||||
and (self.lineNumber is None or line == self.lineNumber)
|
||||
and (self.symbolName is None or fnmatch(message, '*'+self.symbolName+'*'))
|
||||
and fnmatch(errorId, self.errorId)):
|
||||
|
|
Loading…
Reference in New Issue