addons: threadsafety: print name of local static object in message.

This commit is contained in:
Matthias Krüger 2016-01-12 20:31:18 +01:00
parent 610326e37f
commit 8f84f139d7
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ def reportError(token, severity, msg):
def checkstatic(data): def checkstatic(data):
for var in data.variables: for var in data.variables:
if var.isStatic == True and var.isLocal == True and var.isClass == True: if var.isStatic == True and var.isLocal == True and var.isClass == True:
reportError(var.typeStartToken, 'warning', 'Local static object') reportError(var.typeStartToken, 'warning', ('Local static object: ' + var.nameToken.str) )
for arg in sys.argv[1:]: for arg in sys.argv[1:]:
print('Checking ' + arg + '...') print('Checking ' + arg + '...')