Skip to content

Commit 2c7c6b3

Browse files
committed
CheckIO: Try to use ValueType more
1 parent cba11e6 commit 2c7c6b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ CheckIO::ArgumentInfo::ArgumentInfo(const Token * tok, const Settings *settings,
13751375

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

0 commit comments

Comments
 (0)