parent
1a95dc9bd6
commit
d911eeba75
|
@ -1066,7 +1066,8 @@ static void createAstAtTokenInner(Token * const tok1, const Token *endToken, boo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static Token * findAstTop(Token *tok1, Token *tok2) {
|
static Token * findAstTop(Token *tok1, Token *tok2)
|
||||||
|
{
|
||||||
for (Token *tok = tok1; tok && (tok != tok2); tok = tok->next()) {
|
for (Token *tok = tok1; tok && (tok != tok2); tok = tok->next()) {
|
||||||
if (tok->astParent() || tok->astOperand1() || tok->astOperand2())
|
if (tok->astParent() || tok->astOperand1() || tok->astOperand2())
|
||||||
return const_cast<Token *>(tok->astTop());
|
return const_cast<Token *>(tok->astTop());
|
||||||
|
|
Loading…
Reference in New Issue