threadsafety.py: allow execution with --addon
This commit is contained in:
parent
f6f8e2c192
commit
7b6d7b9335
|
@ -25,6 +25,8 @@ def checkstatic(data):
|
||||||
reportError(var.typeStartToken, 'warning', 'Local static ' + type + ': ' + var.nameToken.str, 'threadsafety')
|
reportError(var.typeStartToken, 'warning', 'Local static ' + type + ': ' + var.nameToken.str, 'threadsafety')
|
||||||
|
|
||||||
for arg in sys.argv[1:]:
|
for arg in sys.argv[1:]:
|
||||||
|
if arg.startswith('-'):
|
||||||
|
continue
|
||||||
print('Checking ' + arg + '...')
|
print('Checking ' + arg + '...')
|
||||||
data = cppcheckdata.parsedump(arg)
|
data = cppcheckdata.parsedump(arg)
|
||||||
for cfg in data.configurations:
|
for cfg in data.configurations:
|
||||||
|
|
Loading…
Reference in New Issue