output a debug message when a member variable is used that has a varid of 0

This commit is contained in:
Robert Reif 2011-03-27 14:27:14 -04:00
parent 1e1434e191
commit dd5e15b40c
1 changed files with 3 additions and 0 deletions

View File

@ -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();
}
}