Refactoring: Merge overlapping Token::Match function calls
This commit is contained in:
parent
98d4c944e3
commit
b479948f0f
|
@ -4904,8 +4904,7 @@ void Tokenizer::simplifyCasts()
|
||||||
// (*(void (*)(char *))fp)(x);
|
// (*(void (*)(char *))fp)(x);
|
||||||
if (!tok->isName() &&
|
if (!tok->isName() &&
|
||||||
Token::simpleMatch(tok->next(), "* (") &&
|
Token::simpleMatch(tok->next(), "* (") &&
|
||||||
!Token::Match(tok->linkAt(2), ") %var%") &&
|
!Token::Match(tok->linkAt(2), ") %var%|&")) {
|
||||||
!Token::simpleMatch(tok->linkAt(2), ") &")) {
|
|
||||||
tok = tok->linkAt(2);
|
tok = tok->linkAt(2);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue