CheckIO: Try to use ValueType more

This commit is contained in:
Daniel Marjamäki 2015-10-11 17:35:54 +02:00
parent cba11e623e
commit 2c7c6b3e38
1 changed files with 1 additions and 1 deletions

View File

@ -1375,7 +1375,7 @@ CheckIO::ArgumentInfo::ArgumentInfo(const Token * tok, const Settings *settings,
// Use AST type info
// TODO: This is a bailout so that old code is used in simple cases. Remove the old code and always use the AST type.
if (!Token::Match(tok, "%str%|%name% ,|)") && !Token::Match(tok, "%name% [|(|.|<|::|?")) {
if (!Token::Match(tok, "%str%|%name% ,|)")) {
const ValueType *valuetype = tok->argumentType();
if (valuetype && valuetype->type >= ValueType::Type::BOOL) {
typeToken = tempToken = new Token(0);