Skip to content

Commit 589174b

Browse files
committed
Clang import: Throw InternalError when nodeType is unknown
1 parent f37274a commit 589174b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/clangimport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ Token *clangimport::AstNode::createTokens(TokenList *tokenList)
11921192
createScope(tokenList, Scope::ScopeType::eWhile, body, whiletok);
11931193
return nullptr;
11941194
}
1195-
return addtoken(tokenList, "?" + nodeType + "?");
1195+
throw InternalError(tokenList->back(), "ClangImport::AstNode::createTokens: Unhandled nodeType: nodeType");
11961196
}
11971197

11981198
Token * clangimport::AstNode::createTokensCall(TokenList *tokenList)

0 commit comments

Comments
 (0)