cppcheckdata: Added 'simpleMatch' function

This commit is contained in:
Daniel Marjamäki 2019-06-06 15:38:15 +02:00
parent a6e681f71e
commit 1584e62367
1 changed files with 8 additions and 0 deletions

View File

@ -802,6 +802,14 @@ def ArgumentParser():
return parser return parser
def simpleMatch(token, pattern):
for p in pattern.split(' '):
if not token or token.str != p:
return False
token = token.next
return True
def reportError(location, severity, message, addon, errorId): def reportError(location, severity, message, addon, errorId):
if '--cli' in sys.argv: if '--cli' in sys.argv:
errout = sys.stdout errout = sys.stdout