debug warnings; report missing type for auto tokens

This commit is contained in:
Daniel Marjamäki 2019-03-31 17:38:00 +02:00
parent fbc769266c
commit 0368648aff
1 changed files with 7 additions and 0 deletions

View File

@ -5477,6 +5477,13 @@ void SymbolDatabase::setValueTypeInTokenList()
}
}
if (mSettings->debugwarnings) {
for (Token *tok = tokens; tok; tok = tok->next()) {
if (tok->str() == "auto" && !tok->valueType())
debugMessage(tok, "auto token with no type.");
}
}
// Update functions with new type information.
createSymbolDatabaseSetFunctionPointers(false);