Fixed #2074 ('Internal error in Cppcheck' on complex function typedef (even 2 typedefs!))
This commit is contained in:
parent
7b4e08385d
commit
02027eb750
|
@ -826,7 +826,7 @@ void Tokenizer::simplifyTypedef()
|
||||||
typeStart = tok->next();
|
typeStart = tok->next();
|
||||||
offset = 1;
|
offset = 1;
|
||||||
|
|
||||||
if (Token::Match(typeStart, "const"))
|
while (Token::Match(tok->tokAt(offset), "const|signed|unsigned"))
|
||||||
offset++;
|
offset++;
|
||||||
|
|
||||||
typeEnd = tok->tokAt(offset++);
|
typeEnd = tok->tokAt(offset++);
|
||||||
|
|
Loading…
Reference in New Issue