Refactoring: Merge overlapping Token::Match function calls

This commit is contained in:
Dmitry-Me 2014-09-16 06:22:16 +02:00 committed by Daniel Marjamäki
parent 98d4c944e3
commit b479948f0f
1 changed files with 1 additions and 2 deletions

View File

@ -4904,8 +4904,7 @@ void Tokenizer::simplifyCasts()
// (*(void (*)(char *))fp)(x);
if (!tok->isName() &&
Token::simpleMatch(tok->next(), "* (") &&
!Token::Match(tok->linkAt(2), ") %var%") &&
!Token::simpleMatch(tok->linkAt(2), ") &")) {
!Token::Match(tok->linkAt(2), ") %var%|&")) {
tok = tok->linkAt(2);
continue;
}