threadsafety.py: allow execution with --addon

This commit is contained in:
Daniel Marjamäki 2019-04-10 21:06:40 +02:00
parent f6f8e2c192
commit 7b6d7b9335
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ def checkstatic(data):
reportError(var.typeStartToken, 'warning', 'Local static ' + type + ': ' + var.nameToken.str, 'threadsafety')
for arg in sys.argv[1:]:
if arg.startswith('-'):
continue
print('Checking ' + arg + '...')
data = cppcheckdata.parsedump(arg)
for cfg in data.configurations: