ClangImport; throw exception if CXXForRangeStmt can't be imported
This commit is contained in:
parent
a4a225203c
commit
c546b244a9
|
@ -810,6 +810,8 @@ Token *clangimport::AstNode::createTokens(TokenList *tokenList)
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (!range)
|
||||
throw InternalError(tokenList->back(), "Failed to import CXXForRangeStmt. Range?");
|
||||
Token *expr2 = range->createTokens(tokenList);
|
||||
Token *par2 = addtoken(tokenList, ")");
|
||||
|
||||
|
|
Loading…
Reference in New Issue