Clang import; Tweaked IfStmt (Clang 3.8 compatibility)
This commit is contained in:
parent
05a34142aa
commit
f7f5f10de4
|
@ -599,9 +599,9 @@ Token *clangimport::AstNode::createTokens(TokenList *tokenList)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
if (nodeType == IfStmt) {
|
if (nodeType == IfStmt) {
|
||||||
AstNodePtr cond = children[2];
|
AstNodePtr cond = children[children.size() - 3];
|
||||||
AstNodePtr then = children[3];
|
AstNodePtr then = children[children.size() - 2];
|
||||||
AstNodePtr else_ = children[4];
|
AstNodePtr else_ = children[children.size() - 1];
|
||||||
Token *iftok = addtoken(tokenList, "if");
|
Token *iftok = addtoken(tokenList, "if");
|
||||||
Token *par1 = addtoken(tokenList, "(");
|
Token *par1 = addtoken(tokenList, "(");
|
||||||
par1->astOperand1(iftok);
|
par1->astOperand1(iftok);
|
||||||
|
|
Loading…
Reference in New Issue