output a debug message when a member variable is used that has a varid of 0
This commit is contained in:
parent
1e1434e191
commit
dd5e15b40c
|
@ -1391,6 +1391,9 @@ bool CheckClass::isMemberVar(const Scope *scope, const Token *tok)
|
|||
{
|
||||
if (var->name() == tok->str())
|
||||
{
|
||||
if (tok->varId() == 0)
|
||||
symbolDatabase->debugMessage(tok, "CheckClass::isMemberVar found used member variable \'" + tok->str() + "\' with varid 0");
|
||||
|
||||
return !var->isMutable();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue