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);
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue