| ... | ... | @@ -509,11 +509,11 @@ static const ZigClangType *qual_type_canon(ZigClangQualType qt) { |
| 509 | 509 | |
| 510 | 510 | static ZigClangQualType get_expr_qual_type(Context *c, const clang::Expr *expr) { |
| 511 | 511 | // String literals in C are `char *` but they should really be `const char *`. |
| 512 | | if (expr->getStmtClass() == clang::Stmt::ImplicitCastExprClass) { |
| 512 | if ((ZigClangStmtClass)expr->getStmtClass() == ZigClangStmt_ImplicitCastExprClass) { |
| 513 | 513 | const clang::ImplicitCastExpr *cast_expr = static_cast<const clang::ImplicitCastExpr *>(expr); |
| 514 | 514 | if (cast_expr->getCastKind() == clang::CK_ArrayToPointerDecay) { |
| 515 | 515 | const clang::Expr *sub_expr = cast_expr->getSubExpr(); |
| 516 | | if (sub_expr->getStmtClass() == clang::Stmt::StringLiteralClass) { |
| 516 | if ((ZigClangStmtClass)sub_expr->getStmtClass() == ZigClangStmt_StringLiteralClass) { |
| 517 | 517 | ZigClangQualType array_qt = bitcast(sub_expr->getType()); |
| 518 | 518 | const clang::ArrayType *array_type = reinterpret_cast<const clang::ArrayType *>( |
| 519 | 519 | ZigClangQualType_getTypePtr(array_qt)); |
| ... | ... | @@ -527,7 +527,7 @@ static ZigClangQualType get_expr_qual_type(Context *c, const clang::Expr *expr) |
| 527 | 527 | } |
| 528 | 528 | |
| 529 | 529 | static ZigClangQualType get_expr_qual_type_before_implicit_cast(Context *c, const clang::Expr *expr) { |
| 530 | | if (expr->getStmtClass() == clang::Stmt::ImplicitCastExprClass) { |
| 530 | if ((ZigClangStmtClass)expr->getStmtClass() == ZigClangStmt_ImplicitCastExprClass) { |
| 531 | 531 | const clang::ImplicitCastExpr *cast_expr = static_cast<const clang::ImplicitCastExpr *>(expr); |
| 532 | 532 | return get_expr_qual_type(c, cast_expr->getSubExpr()); |
| 533 | 533 | } |
| ... | ... | @@ -2791,10 +2791,10 @@ static AstNode *trans_call_expr(Context *c, ResultUsed result_used, TransScope * |
| 2791 | 2791 | const clang::FunctionProtoType *fn_ty = qual_type_get_fn_proto(bitcast(stmt->getCallee()->getType()), &is_ptr); |
| 2792 | 2792 | AstNode *callee_node = nullptr; |
| 2793 | 2793 | if (is_ptr && fn_ty) { |
| 2794 | | if (stmt->getCallee()->getStmtClass() == clang::Stmt::ImplicitCastExprClass) { |
| 2794 | if ((ZigClangStmtClass)stmt->getCallee()->getStmtClass() == ZigClangStmt_ImplicitCastExprClass) { |
| 2795 | 2795 | const clang::ImplicitCastExpr *implicit_cast = static_cast<const clang::ImplicitCastExpr *>(stmt->getCallee()); |
| 2796 | 2796 | if (implicit_cast->getCastKind() == clang::CK_FunctionToPointerDecay) { |
| 2797 | | if (implicit_cast->getSubExpr()->getStmtClass() == clang::Stmt::DeclRefExprClass) { |
| 2797 | if ((ZigClangStmtClass)implicit_cast->getSubExpr()->getStmtClass() == ZigClangStmt_DeclRefExprClass) { |
| 2798 | 2798 | const clang::DeclRefExpr *decl_ref = static_cast<const clang::DeclRefExpr *>(implicit_cast->getSubExpr()); |
| 2799 | 2799 | const clang::Decl *decl = decl_ref->getFoundDecl(); |
| 2800 | 2800 | if (decl->getKind() == clang::Decl::Function) { |
| ... | ... | @@ -2898,7 +2898,7 @@ static AstNode *trans_do_loop(Context *c, TransScope *parent_scope, const clang: |
| 2898 | 2898 | |
| 2899 | 2899 | AstNode *body_node; |
| 2900 | 2900 | TransScope *child_scope; |
| 2901 | | if (stmt->getBody()->getStmtClass() == clang::Stmt::CompoundStmtClass) { |
| 2901 | if ((ZigClangStmtClass)stmt->getBody()->getStmtClass() == ZigClangStmt_CompoundStmtClass) { |
| 2902 | 2902 | // there's already a block in C, so we'll append our condition to it. |
| 2903 | 2903 | // c: do { |
| 2904 | 2904 | // c: a; |
| ... | ... | @@ -3051,7 +3051,7 @@ static AstNode *trans_switch_stmt(Context *c, TransScope *parent_scope, const cl |
| 3051 | 3051 | |
| 3052 | 3052 | AstNode *body_node; |
| 3053 | 3053 | const clang::Stmt *body_stmt = stmt->getBody(); |
| 3054 | | if (body_stmt->getStmtClass() == clang::Stmt::CompoundStmtClass) { |
| 3054 | if ((ZigClangStmtClass)body_stmt->getStmtClass() == ZigClangStmt_CompoundStmtClass) { |
| 3055 | 3055 | if (trans_compound_stmt_inline(c, &switch_scope->base, (const clang::CompoundStmt *)body_stmt, |
| 3056 | 3056 | block_scope->node, nullptr)) |
| 3057 | 3057 | { |
| ... | ... | @@ -3224,40 +3224,40 @@ static int trans_stmt_extra(Context *c, TransScope *scope, const clang::Stmt *st |
| 3224 | 3224 | AstNode **out_node, TransScope **out_child_scope, |
| 3225 | 3225 | TransScope **out_node_scope) |
| 3226 | 3226 | { |
| 3227 | | clang::Stmt::StmtClass sc = stmt->getStmtClass(); |
| 3227 | ZigClangStmtClass sc = (ZigClangStmtClass)stmt->getStmtClass(); |
| 3228 | 3228 | switch (sc) { |
| 3229 | | case clang::Stmt::ReturnStmtClass: |
| 3229 | case ZigClangStmt_ReturnStmtClass: |
| 3230 | 3230 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3231 | 3231 | trans_return_stmt(c, scope, (const clang::ReturnStmt *)stmt)); |
| 3232 | | case clang::Stmt::CompoundStmtClass: |
| 3232 | case ZigClangStmt_CompoundStmtClass: |
| 3233 | 3233 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3234 | 3234 | trans_compound_stmt(c, scope, (const clang::CompoundStmt *)stmt, out_node_scope)); |
| 3235 | | case clang::Stmt::IntegerLiteralClass: |
| 3235 | case ZigClangStmt_IntegerLiteralClass: |
| 3236 | 3236 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3237 | 3237 | trans_integer_literal(c, result_used, (const clang::IntegerLiteral *)stmt)); |
| 3238 | | case clang::Stmt::ConditionalOperatorClass: |
| 3238 | case ZigClangStmt_ConditionalOperatorClass: |
| 3239 | 3239 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3240 | 3240 | trans_conditional_operator(c, result_used, scope, (const clang::ConditionalOperator *)stmt)); |
| 3241 | | case clang::Stmt::BinaryOperatorClass: |
| 3241 | case ZigClangStmt_BinaryOperatorClass: |
| 3242 | 3242 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3243 | 3243 | trans_binary_operator(c, result_used, scope, (const clang::BinaryOperator *)stmt)); |
| 3244 | | case clang::Stmt::CompoundAssignOperatorClass: |
| 3244 | case ZigClangStmt_CompoundAssignOperatorClass: |
| 3245 | 3245 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3246 | 3246 | trans_compound_assign_operator(c, result_used, scope, (const clang::CompoundAssignOperator *)stmt)); |
| 3247 | | case clang::Stmt::ImplicitCastExprClass: |
| 3247 | case ZigClangStmt_ImplicitCastExprClass: |
| 3248 | 3248 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3249 | 3249 | trans_implicit_cast_expr(c, result_used, scope, (const clang::ImplicitCastExpr *)stmt)); |
| 3250 | | case clang::Stmt::DeclRefExprClass: |
| 3250 | case ZigClangStmt_DeclRefExprClass: |
| 3251 | 3251 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3252 | 3252 | trans_decl_ref_expr(c, scope, (const clang::DeclRefExpr *)stmt, lrvalue)); |
| 3253 | | case clang::Stmt::UnaryOperatorClass: |
| 3253 | case ZigClangStmt_UnaryOperatorClass: |
| 3254 | 3254 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3255 | 3255 | trans_unary_operator(c, result_used, scope, (const clang::UnaryOperator *)stmt)); |
| 3256 | | case clang::Stmt::DeclStmtClass: |
| 3256 | case ZigClangStmt_DeclStmtClass: |
| 3257 | 3257 | return trans_local_declaration(c, scope, (const clang::DeclStmt *)stmt, out_node, out_child_scope); |
| 3258 | | case clang::Stmt::DoStmtClass: |
| 3259 | | case clang::Stmt::WhileStmtClass: { |
| 3260 | | AstNode *while_node = sc == clang::Stmt::DoStmtClass |
| 3258 | case ZigClangStmt_DoStmtClass: |
| 3259 | case ZigClangStmt_WhileStmtClass: { |
| 3260 | AstNode *while_node = sc == ZigClangStmt_DoStmtClass |
| 3261 | 3261 | ? trans_do_loop(c, scope, (const clang::DoStmt *)stmt) |
| 3262 | 3262 | : trans_while_loop(c, scope, (const clang::WhileStmt *)stmt); |
| 3263 | 3263 | |
| ... | ... | @@ -3270,559 +3270,559 @@ static int trans_stmt_extra(Context *c, TransScope *scope, const clang::Stmt *st |
| 3270 | 3270 | |
| 3271 | 3271 | return wrap_stmt(out_node, out_child_scope, scope, while_node); |
| 3272 | 3272 | } |
| 3273 | | case clang::Stmt::IfStmtClass: |
| 3273 | case ZigClangStmt_IfStmtClass: |
| 3274 | 3274 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3275 | 3275 | trans_if_statement(c, scope, (const clang::IfStmt *)stmt)); |
| 3276 | | case clang::Stmt::CallExprClass: |
| 3276 | case ZigClangStmt_CallExprClass: |
| 3277 | 3277 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3278 | 3278 | trans_call_expr(c, result_used, scope, (const clang::CallExpr *)stmt)); |
| 3279 | | case clang::Stmt::NullStmtClass: |
| 3279 | case ZigClangStmt_NullStmtClass: |
| 3280 | 3280 | *out_node = trans_create_node(c, NodeTypeBlock); |
| 3281 | 3281 | *out_child_scope = scope; |
| 3282 | 3282 | return ErrorNone; |
| 3283 | | case clang::Stmt::MemberExprClass: |
| 3283 | case ZigClangStmt_MemberExprClass: |
| 3284 | 3284 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3285 | 3285 | trans_member_expr(c, result_used, scope, (const clang::MemberExpr *)stmt)); |
| 3286 | | case clang::Stmt::ArraySubscriptExprClass: |
| 3286 | case ZigClangStmt_ArraySubscriptExprClass: |
| 3287 | 3287 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3288 | 3288 | trans_array_subscript_expr(c, result_used, scope, (const clang::ArraySubscriptExpr *)stmt)); |
| 3289 | | case clang::Stmt::CStyleCastExprClass: |
| 3289 | case ZigClangStmt_CStyleCastExprClass: |
| 3290 | 3290 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3291 | 3291 | trans_c_style_cast_expr(c, result_used, scope, (const clang::CStyleCastExpr *)stmt, lrvalue)); |
| 3292 | | case clang::Stmt::UnaryExprOrTypeTraitExprClass: |
| 3292 | case ZigClangStmt_UnaryExprOrTypeTraitExprClass: |
| 3293 | 3293 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3294 | 3294 | trans_unary_expr_or_type_trait_expr(c, result_used, scope, (const clang::UnaryExprOrTypeTraitExpr *)stmt)); |
| 3295 | | case clang::Stmt::ForStmtClass: { |
| 3295 | case ZigClangStmt_ForStmtClass: { |
| 3296 | 3296 | AstNode *node = trans_for_loop(c, scope, (const clang::ForStmt *)stmt); |
| 3297 | 3297 | return wrap_stmt(out_node, out_child_scope, scope, node); |
| 3298 | 3298 | } |
| 3299 | | case clang::Stmt::StringLiteralClass: |
| 3299 | case ZigClangStmt_StringLiteralClass: |
| 3300 | 3300 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3301 | 3301 | trans_string_literal(c, result_used, scope, (const clang::StringLiteral *)stmt)); |
| 3302 | | case clang::Stmt::BreakStmtClass: |
| 3302 | case ZigClangStmt_BreakStmtClass: |
| 3303 | 3303 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3304 | 3304 | trans_break_stmt(c, scope, (const clang::BreakStmt *)stmt)); |
| 3305 | | case clang::Stmt::ContinueStmtClass: |
| 3305 | case ZigClangStmt_ContinueStmtClass: |
| 3306 | 3306 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3307 | 3307 | trans_continue_stmt(c, scope, (const clang::ContinueStmt *)stmt)); |
| 3308 | | case clang::Stmt::ParenExprClass: |
| 3308 | case ZigClangStmt_ParenExprClass: |
| 3309 | 3309 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3310 | 3310 | trans_expr(c, result_used, scope, ((const clang::ParenExpr*)stmt)->getSubExpr(), lrvalue)); |
| 3311 | | case clang::Stmt::SwitchStmtClass: |
| 3311 | case ZigClangStmt_SwitchStmtClass: |
| 3312 | 3312 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3313 | 3313 | trans_switch_stmt(c, scope, (const clang::SwitchStmt *)stmt)); |
| 3314 | | case clang::Stmt::CaseStmtClass: |
| 3314 | case ZigClangStmt_CaseStmtClass: |
| 3315 | 3315 | return trans_switch_case(c, scope, (const clang::CaseStmt *)stmt, out_node, out_child_scope); |
| 3316 | | case clang::Stmt::DefaultStmtClass: |
| 3316 | case ZigClangStmt_DefaultStmtClass: |
| 3317 | 3317 | return trans_switch_default(c, scope, (const clang::DefaultStmt *)stmt, out_node, out_child_scope); |
| 3318 | | case clang::Stmt::ConstantExprClass: |
| 3318 | case ZigClangStmt_ConstantExprClass: |
| 3319 | 3319 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3320 | 3320 | trans_constant_expr(c, result_used, (const clang::ConstantExpr *)stmt)); |
| 3321 | | case clang::Stmt::PredefinedExprClass: |
| 3321 | case ZigClangStmt_PredefinedExprClass: |
| 3322 | 3322 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3323 | 3323 | trans_predefined_expr(c, result_used, scope, (const clang::PredefinedExpr *)stmt)); |
| 3324 | | case clang::Stmt::StmtExprClass: |
| 3324 | case ZigClangStmt_StmtExprClass: |
| 3325 | 3325 | return wrap_stmt(out_node, out_child_scope, scope, |
| 3326 | 3326 | trans_stmt_expr(c, result_used, scope, (const clang::StmtExpr *)stmt, out_node_scope)); |
| 3327 | | case clang::Stmt::NoStmtClass: |
| 3327 | case ZigClangStmt_NoStmtClass: |
| 3328 | 3328 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C NoStmtClass"); |
| 3329 | 3329 | return ErrorUnexpected; |
| 3330 | | case clang::Stmt::GCCAsmStmtClass: |
| 3330 | case ZigClangStmt_GCCAsmStmtClass: |
| 3331 | 3331 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C GCCAsmStmtClass"); |
| 3332 | 3332 | return ErrorUnexpected; |
| 3333 | | case clang::Stmt::MSAsmStmtClass: |
| 3333 | case ZigClangStmt_MSAsmStmtClass: |
| 3334 | 3334 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C MSAsmStmtClass"); |
| 3335 | 3335 | return ErrorUnexpected; |
| 3336 | | case clang::Stmt::AttributedStmtClass: |
| 3336 | case ZigClangStmt_AttributedStmtClass: |
| 3337 | 3337 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C AttributedStmtClass"); |
| 3338 | 3338 | return ErrorUnexpected; |
| 3339 | | case clang::Stmt::CXXCatchStmtClass: |
| 3339 | case ZigClangStmt_CXXCatchStmtClass: |
| 3340 | 3340 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXCatchStmtClass"); |
| 3341 | 3341 | return ErrorUnexpected; |
| 3342 | | case clang::Stmt::CXXForRangeStmtClass: |
| 3342 | case ZigClangStmt_CXXForRangeStmtClass: |
| 3343 | 3343 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXForRangeStmtClass"); |
| 3344 | 3344 | return ErrorUnexpected; |
| 3345 | | case clang::Stmt::CXXTryStmtClass: |
| 3345 | case ZigClangStmt_CXXTryStmtClass: |
| 3346 | 3346 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXTryStmtClass"); |
| 3347 | 3347 | return ErrorUnexpected; |
| 3348 | | case clang::Stmt::CapturedStmtClass: |
| 3348 | case ZigClangStmt_CapturedStmtClass: |
| 3349 | 3349 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CapturedStmtClass"); |
| 3350 | 3350 | return ErrorUnexpected; |
| 3351 | | case clang::Stmt::CoreturnStmtClass: |
| 3351 | case ZigClangStmt_CoreturnStmtClass: |
| 3352 | 3352 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CoreturnStmtClass"); |
| 3353 | 3353 | return ErrorUnexpected; |
| 3354 | | case clang::Stmt::CoroutineBodyStmtClass: |
| 3354 | case ZigClangStmt_CoroutineBodyStmtClass: |
| 3355 | 3355 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CoroutineBodyStmtClass"); |
| 3356 | 3356 | return ErrorUnexpected; |
| 3357 | | case clang::Stmt::BinaryConditionalOperatorClass: |
| 3357 | case ZigClangStmt_BinaryConditionalOperatorClass: |
| 3358 | 3358 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C BinaryConditionalOperatorClass"); |
| 3359 | 3359 | return ErrorUnexpected; |
| 3360 | | case clang::Stmt::AddrLabelExprClass: |
| 3360 | case ZigClangStmt_AddrLabelExprClass: |
| 3361 | 3361 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C AddrLabelExprClass"); |
| 3362 | 3362 | return ErrorUnexpected; |
| 3363 | | case clang::Stmt::ArrayInitIndexExprClass: |
| 3363 | case ZigClangStmt_ArrayInitIndexExprClass: |
| 3364 | 3364 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ArrayInitIndexExprClass"); |
| 3365 | 3365 | return ErrorUnexpected; |
| 3366 | | case clang::Stmt::ArrayInitLoopExprClass: |
| 3366 | case ZigClangStmt_ArrayInitLoopExprClass: |
| 3367 | 3367 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ArrayInitLoopExprClass"); |
| 3368 | 3368 | return ErrorUnexpected; |
| 3369 | | case clang::Stmt::ArrayTypeTraitExprClass: |
| 3369 | case ZigClangStmt_ArrayTypeTraitExprClass: |
| 3370 | 3370 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ArrayTypeTraitExprClass"); |
| 3371 | 3371 | return ErrorUnexpected; |
| 3372 | | case clang::Stmt::AsTypeExprClass: |
| 3372 | case ZigClangStmt_AsTypeExprClass: |
| 3373 | 3373 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C AsTypeExprClass"); |
| 3374 | 3374 | return ErrorUnexpected; |
| 3375 | | case clang::Stmt::AtomicExprClass: |
| 3375 | case ZigClangStmt_AtomicExprClass: |
| 3376 | 3376 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C AtomicExprClass"); |
| 3377 | 3377 | return ErrorUnexpected; |
| 3378 | | case clang::Stmt::BlockExprClass: |
| 3378 | case ZigClangStmt_BlockExprClass: |
| 3379 | 3379 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C BlockExprClass"); |
| 3380 | 3380 | return ErrorUnexpected; |
| 3381 | | case clang::Stmt::CXXBindTemporaryExprClass: |
| 3381 | case ZigClangStmt_CXXBindTemporaryExprClass: |
| 3382 | 3382 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXBindTemporaryExprClass"); |
| 3383 | 3383 | return ErrorUnexpected; |
| 3384 | | case clang::Stmt::CXXBoolLiteralExprClass: |
| 3384 | case ZigClangStmt_CXXBoolLiteralExprClass: |
| 3385 | 3385 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXBoolLiteralExprClass"); |
| 3386 | 3386 | return ErrorUnexpected; |
| 3387 | | case clang::Stmt::CXXConstructExprClass: |
| 3387 | case ZigClangStmt_CXXConstructExprClass: |
| 3388 | 3388 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXConstructExprClass"); |
| 3389 | 3389 | return ErrorUnexpected; |
| 3390 | | case clang::Stmt::CXXTemporaryObjectExprClass: |
| 3390 | case ZigClangStmt_CXXTemporaryObjectExprClass: |
| 3391 | 3391 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXTemporaryObjectExprClass"); |
| 3392 | 3392 | return ErrorUnexpected; |
| 3393 | | case clang::Stmt::CXXDefaultArgExprClass: |
| 3393 | case ZigClangStmt_CXXDefaultArgExprClass: |
| 3394 | 3394 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXDefaultArgExprClass"); |
| 3395 | 3395 | return ErrorUnexpected; |
| 3396 | | case clang::Stmt::CXXDefaultInitExprClass: |
| 3396 | case ZigClangStmt_CXXDefaultInitExprClass: |
| 3397 | 3397 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXDefaultInitExprClass"); |
| 3398 | 3398 | return ErrorUnexpected; |
| 3399 | | case clang::Stmt::CXXDeleteExprClass: |
| 3399 | case ZigClangStmt_CXXDeleteExprClass: |
| 3400 | 3400 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXDeleteExprClass"); |
| 3401 | 3401 | return ErrorUnexpected; |
| 3402 | | case clang::Stmt::CXXDependentScopeMemberExprClass: |
| 3402 | case ZigClangStmt_CXXDependentScopeMemberExprClass: |
| 3403 | 3403 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXDependentScopeMemberExprClass"); |
| 3404 | 3404 | return ErrorUnexpected; |
| 3405 | | case clang::Stmt::CXXFoldExprClass: |
| 3405 | case ZigClangStmt_CXXFoldExprClass: |
| 3406 | 3406 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXFoldExprClass"); |
| 3407 | 3407 | return ErrorUnexpected; |
| 3408 | | case clang::Stmt::CXXInheritedCtorInitExprClass: |
| 3408 | case ZigClangStmt_CXXInheritedCtorInitExprClass: |
| 3409 | 3409 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXInheritedCtorInitExprClass"); |
| 3410 | 3410 | return ErrorUnexpected; |
| 3411 | | case clang::Stmt::CXXNewExprClass: |
| 3411 | case ZigClangStmt_CXXNewExprClass: |
| 3412 | 3412 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXNewExprClass"); |
| 3413 | 3413 | return ErrorUnexpected; |
| 3414 | | case clang::Stmt::CXXNoexceptExprClass: |
| 3414 | case ZigClangStmt_CXXNoexceptExprClass: |
| 3415 | 3415 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXNoexceptExprClass"); |
| 3416 | 3416 | return ErrorUnexpected; |
| 3417 | | case clang::Stmt::CXXNullPtrLiteralExprClass: |
| 3417 | case ZigClangStmt_CXXNullPtrLiteralExprClass: |
| 3418 | 3418 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXNullPtrLiteralExprClass"); |
| 3419 | 3419 | return ErrorUnexpected; |
| 3420 | | case clang::Stmt::CXXPseudoDestructorExprClass: |
| 3420 | case ZigClangStmt_CXXPseudoDestructorExprClass: |
| 3421 | 3421 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXPseudoDestructorExprClass"); |
| 3422 | 3422 | return ErrorUnexpected; |
| 3423 | | case clang::Stmt::CXXScalarValueInitExprClass: |
| 3423 | case ZigClangStmt_CXXScalarValueInitExprClass: |
| 3424 | 3424 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXScalarValueInitExprClass"); |
| 3425 | 3425 | return ErrorUnexpected; |
| 3426 | | case clang::Stmt::CXXStdInitializerListExprClass: |
| 3426 | case ZigClangStmt_CXXStdInitializerListExprClass: |
| 3427 | 3427 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXStdInitializerListExprClass"); |
| 3428 | 3428 | return ErrorUnexpected; |
| 3429 | | case clang::Stmt::CXXThisExprClass: |
| 3429 | case ZigClangStmt_CXXThisExprClass: |
| 3430 | 3430 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXThisExprClass"); |
| 3431 | 3431 | return ErrorUnexpected; |
| 3432 | | case clang::Stmt::CXXThrowExprClass: |
| 3432 | case ZigClangStmt_CXXThrowExprClass: |
| 3433 | 3433 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXThrowExprClass"); |
| 3434 | 3434 | return ErrorUnexpected; |
| 3435 | | case clang::Stmt::CXXTypeidExprClass: |
| 3435 | case ZigClangStmt_CXXTypeidExprClass: |
| 3436 | 3436 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXTypeidExprClass"); |
| 3437 | 3437 | return ErrorUnexpected; |
| 3438 | | case clang::Stmt::CXXUnresolvedConstructExprClass: |
| 3438 | case ZigClangStmt_CXXUnresolvedConstructExprClass: |
| 3439 | 3439 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXUnresolvedConstructExprClass"); |
| 3440 | 3440 | return ErrorUnexpected; |
| 3441 | | case clang::Stmt::CXXUuidofExprClass: |
| 3441 | case ZigClangStmt_CXXUuidofExprClass: |
| 3442 | 3442 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXUuidofExprClass"); |
| 3443 | 3443 | return ErrorUnexpected; |
| 3444 | | case clang::Stmt::CUDAKernelCallExprClass: |
| 3444 | case ZigClangStmt_CUDAKernelCallExprClass: |
| 3445 | 3445 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CUDAKernelCallExprClass"); |
| 3446 | 3446 | return ErrorUnexpected; |
| 3447 | | case clang::Stmt::CXXMemberCallExprClass: |
| 3447 | case ZigClangStmt_CXXMemberCallExprClass: |
| 3448 | 3448 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXMemberCallExprClass"); |
| 3449 | 3449 | return ErrorUnexpected; |
| 3450 | | case clang::Stmt::CXXOperatorCallExprClass: |
| 3450 | case ZigClangStmt_CXXOperatorCallExprClass: |
| 3451 | 3451 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXOperatorCallExprClass"); |
| 3452 | 3452 | return ErrorUnexpected; |
| 3453 | | case clang::Stmt::UserDefinedLiteralClass: |
| 3453 | case ZigClangStmt_UserDefinedLiteralClass: |
| 3454 | 3454 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C UserDefinedLiteralClass"); |
| 3455 | 3455 | return ErrorUnexpected; |
| 3456 | | case clang::Stmt::CXXFunctionalCastExprClass: |
| 3456 | case ZigClangStmt_CXXFunctionalCastExprClass: |
| 3457 | 3457 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXFunctionalCastExprClass"); |
| 3458 | 3458 | return ErrorUnexpected; |
| 3459 | | case clang::Stmt::CXXConstCastExprClass: |
| 3459 | case ZigClangStmt_CXXConstCastExprClass: |
| 3460 | 3460 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXConstCastExprClass"); |
| 3461 | 3461 | return ErrorUnexpected; |
| 3462 | | case clang::Stmt::CXXDynamicCastExprClass: |
| 3462 | case ZigClangStmt_CXXDynamicCastExprClass: |
| 3463 | 3463 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXDynamicCastExprClass"); |
| 3464 | 3464 | return ErrorUnexpected; |
| 3465 | | case clang::Stmt::CXXReinterpretCastExprClass: |
| 3465 | case ZigClangStmt_CXXReinterpretCastExprClass: |
| 3466 | 3466 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXReinterpretCastExprClass"); |
| 3467 | 3467 | return ErrorUnexpected; |
| 3468 | | case clang::Stmt::CXXStaticCastExprClass: |
| 3468 | case ZigClangStmt_CXXStaticCastExprClass: |
| 3469 | 3469 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CXXStaticCastExprClass"); |
| 3470 | 3470 | return ErrorUnexpected; |
| 3471 | | case clang::Stmt::ObjCBridgedCastExprClass: |
| 3471 | case ZigClangStmt_ObjCBridgedCastExprClass: |
| 3472 | 3472 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCBridgedCastExprClass"); |
| 3473 | 3473 | return ErrorUnexpected; |
| 3474 | | case clang::Stmt::CharacterLiteralClass: |
| 3474 | case ZigClangStmt_CharacterLiteralClass: |
| 3475 | 3475 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CharacterLiteralClass"); |
| 3476 | 3476 | return ErrorUnexpected; |
| 3477 | | case clang::Stmt::ChooseExprClass: |
| 3477 | case ZigClangStmt_ChooseExprClass: |
| 3478 | 3478 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ChooseExprClass"); |
| 3479 | 3479 | return ErrorUnexpected; |
| 3480 | | case clang::Stmt::CompoundLiteralExprClass: |
| 3480 | case ZigClangStmt_CompoundLiteralExprClass: |
| 3481 | 3481 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CompoundLiteralExprClass"); |
| 3482 | 3482 | return ErrorUnexpected; |
| 3483 | | case clang::Stmt::ConvertVectorExprClass: |
| 3483 | case ZigClangStmt_ConvertVectorExprClass: |
| 3484 | 3484 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ConvertVectorExprClass"); |
| 3485 | 3485 | return ErrorUnexpected; |
| 3486 | | case clang::Stmt::CoawaitExprClass: |
| 3486 | case ZigClangStmt_CoawaitExprClass: |
| 3487 | 3487 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CoawaitExprClass"); |
| 3488 | 3488 | return ErrorUnexpected; |
| 3489 | | case clang::Stmt::CoyieldExprClass: |
| 3489 | case ZigClangStmt_CoyieldExprClass: |
| 3490 | 3490 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C CoyieldExprClass"); |
| 3491 | 3491 | return ErrorUnexpected; |
| 3492 | | case clang::Stmt::DependentCoawaitExprClass: |
| 3492 | case ZigClangStmt_DependentCoawaitExprClass: |
| 3493 | 3493 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C DependentCoawaitExprClass"); |
| 3494 | 3494 | return ErrorUnexpected; |
| 3495 | | case clang::Stmt::DependentScopeDeclRefExprClass: |
| 3495 | case ZigClangStmt_DependentScopeDeclRefExprClass: |
| 3496 | 3496 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C DependentScopeDeclRefExprClass"); |
| 3497 | 3497 | return ErrorUnexpected; |
| 3498 | | case clang::Stmt::DesignatedInitExprClass: |
| 3498 | case ZigClangStmt_DesignatedInitExprClass: |
| 3499 | 3499 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C DesignatedInitExprClass"); |
| 3500 | 3500 | return ErrorUnexpected; |
| 3501 | | case clang::Stmt::DesignatedInitUpdateExprClass: |
| 3501 | case ZigClangStmt_DesignatedInitUpdateExprClass: |
| 3502 | 3502 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C DesignatedInitUpdateExprClass"); |
| 3503 | 3503 | return ErrorUnexpected; |
| 3504 | | case clang::Stmt::ExpressionTraitExprClass: |
| 3504 | case ZigClangStmt_ExpressionTraitExprClass: |
| 3505 | 3505 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ExpressionTraitExprClass"); |
| 3506 | 3506 | return ErrorUnexpected; |
| 3507 | | case clang::Stmt::ExtVectorElementExprClass: |
| 3507 | case ZigClangStmt_ExtVectorElementExprClass: |
| 3508 | 3508 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ExtVectorElementExprClass"); |
| 3509 | 3509 | return ErrorUnexpected; |
| 3510 | | case clang::Stmt::FixedPointLiteralClass: |
| 3510 | case ZigClangStmt_FixedPointLiteralClass: |
| 3511 | 3511 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C FixedPointLiteralClass"); |
| 3512 | 3512 | return ErrorUnexpected; |
| 3513 | | case clang::Stmt::FloatingLiteralClass: |
| 3513 | case ZigClangStmt_FloatingLiteralClass: |
| 3514 | 3514 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C FloatingLiteralClass"); |
| 3515 | 3515 | return ErrorUnexpected; |
| 3516 | | case clang::Stmt::ExprWithCleanupsClass: |
| 3516 | case ZigClangStmt_ExprWithCleanupsClass: |
| 3517 | 3517 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ExprWithCleanupsClass"); |
| 3518 | 3518 | return ErrorUnexpected; |
| 3519 | | case clang::Stmt::FunctionParmPackExprClass: |
| 3519 | case ZigClangStmt_FunctionParmPackExprClass: |
| 3520 | 3520 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C FunctionParmPackExprClass"); |
| 3521 | 3521 | return ErrorUnexpected; |
| 3522 | | case clang::Stmt::GNUNullExprClass: |
| 3522 | case ZigClangStmt_GNUNullExprClass: |
| 3523 | 3523 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C GNUNullExprClass"); |
| 3524 | 3524 | return ErrorUnexpected; |
| 3525 | | case clang::Stmt::GenericSelectionExprClass: |
| 3525 | case ZigClangStmt_GenericSelectionExprClass: |
| 3526 | 3526 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C GenericSelectionExprClass"); |
| 3527 | 3527 | return ErrorUnexpected; |
| 3528 | | case clang::Stmt::ImaginaryLiteralClass: |
| 3528 | case ZigClangStmt_ImaginaryLiteralClass: |
| 3529 | 3529 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ImaginaryLiteralClass"); |
| 3530 | 3530 | return ErrorUnexpected; |
| 3531 | | case clang::Stmt::ImplicitValueInitExprClass: |
| 3531 | case ZigClangStmt_ImplicitValueInitExprClass: |
| 3532 | 3532 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ImplicitValueInitExprClass"); |
| 3533 | 3533 | return ErrorUnexpected; |
| 3534 | | case clang::Stmt::InitListExprClass: |
| 3534 | case ZigClangStmt_InitListExprClass: |
| 3535 | 3535 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C InitListExprClass"); |
| 3536 | 3536 | return ErrorUnexpected; |
| 3537 | | case clang::Stmt::LambdaExprClass: |
| 3537 | case ZigClangStmt_LambdaExprClass: |
| 3538 | 3538 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C LambdaExprClass"); |
| 3539 | 3539 | return ErrorUnexpected; |
| 3540 | | case clang::Stmt::MSPropertyRefExprClass: |
| 3540 | case ZigClangStmt_MSPropertyRefExprClass: |
| 3541 | 3541 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C MSPropertyRefExprClass"); |
| 3542 | 3542 | return ErrorUnexpected; |
| 3543 | | case clang::Stmt::MSPropertySubscriptExprClass: |
| 3543 | case ZigClangStmt_MSPropertySubscriptExprClass: |
| 3544 | 3544 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C MSPropertySubscriptExprClass"); |
| 3545 | 3545 | return ErrorUnexpected; |
| 3546 | | case clang::Stmt::MaterializeTemporaryExprClass: |
| 3546 | case ZigClangStmt_MaterializeTemporaryExprClass: |
| 3547 | 3547 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C MaterializeTemporaryExprClass"); |
| 3548 | 3548 | return ErrorUnexpected; |
| 3549 | | case clang::Stmt::NoInitExprClass: |
| 3549 | case ZigClangStmt_NoInitExprClass: |
| 3550 | 3550 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C NoInitExprClass"); |
| 3551 | 3551 | return ErrorUnexpected; |
| 3552 | | case clang::Stmt::OMPArraySectionExprClass: |
| 3552 | case ZigClangStmt_OMPArraySectionExprClass: |
| 3553 | 3553 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPArraySectionExprClass"); |
| 3554 | 3554 | return ErrorUnexpected; |
| 3555 | | case clang::Stmt::ObjCArrayLiteralClass: |
| 3555 | case ZigClangStmt_ObjCArrayLiteralClass: |
| 3556 | 3556 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCArrayLiteralClass"); |
| 3557 | 3557 | return ErrorUnexpected; |
| 3558 | | case clang::Stmt::ObjCAvailabilityCheckExprClass: |
| 3558 | case ZigClangStmt_ObjCAvailabilityCheckExprClass: |
| 3559 | 3559 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCAvailabilityCheckExprClass"); |
| 3560 | 3560 | return ErrorUnexpected; |
| 3561 | | case clang::Stmt::ObjCBoolLiteralExprClass: |
| 3561 | case ZigClangStmt_ObjCBoolLiteralExprClass: |
| 3562 | 3562 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCBoolLiteralExprClass"); |
| 3563 | 3563 | return ErrorUnexpected; |
| 3564 | | case clang::Stmt::ObjCBoxedExprClass: |
| 3564 | case ZigClangStmt_ObjCBoxedExprClass: |
| 3565 | 3565 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCBoxedExprClass"); |
| 3566 | 3566 | return ErrorUnexpected; |
| 3567 | | case clang::Stmt::ObjCDictionaryLiteralClass: |
| 3567 | case ZigClangStmt_ObjCDictionaryLiteralClass: |
| 3568 | 3568 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCDictionaryLiteralClass"); |
| 3569 | 3569 | return ErrorUnexpected; |
| 3570 | | case clang::Stmt::ObjCEncodeExprClass: |
| 3570 | case ZigClangStmt_ObjCEncodeExprClass: |
| 3571 | 3571 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCEncodeExprClass"); |
| 3572 | 3572 | return ErrorUnexpected; |
| 3573 | | case clang::Stmt::ObjCIndirectCopyRestoreExprClass: |
| 3573 | case ZigClangStmt_ObjCIndirectCopyRestoreExprClass: |
| 3574 | 3574 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCIndirectCopyRestoreExprClass"); |
| 3575 | 3575 | return ErrorUnexpected; |
| 3576 | | case clang::Stmt::ObjCIsaExprClass: |
| 3576 | case ZigClangStmt_ObjCIsaExprClass: |
| 3577 | 3577 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCIsaExprClass"); |
| 3578 | 3578 | return ErrorUnexpected; |
| 3579 | | case clang::Stmt::ObjCIvarRefExprClass: |
| 3579 | case ZigClangStmt_ObjCIvarRefExprClass: |
| 3580 | 3580 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCIvarRefExprClass"); |
| 3581 | 3581 | return ErrorUnexpected; |
| 3582 | | case clang::Stmt::ObjCMessageExprClass: |
| 3582 | case ZigClangStmt_ObjCMessageExprClass: |
| 3583 | 3583 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCMessageExprClass"); |
| 3584 | 3584 | return ErrorUnexpected; |
| 3585 | | case clang::Stmt::ObjCPropertyRefExprClass: |
| 3585 | case ZigClangStmt_ObjCPropertyRefExprClass: |
| 3586 | 3586 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCPropertyRefExprClass"); |
| 3587 | 3587 | return ErrorUnexpected; |
| 3588 | | case clang::Stmt::ObjCProtocolExprClass: |
| 3588 | case ZigClangStmt_ObjCProtocolExprClass: |
| 3589 | 3589 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCProtocolExprClass"); |
| 3590 | 3590 | return ErrorUnexpected; |
| 3591 | | case clang::Stmt::ObjCSelectorExprClass: |
| 3591 | case ZigClangStmt_ObjCSelectorExprClass: |
| 3592 | 3592 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCSelectorExprClass"); |
| 3593 | 3593 | return ErrorUnexpected; |
| 3594 | | case clang::Stmt::ObjCStringLiteralClass: |
| 3594 | case ZigClangStmt_ObjCStringLiteralClass: |
| 3595 | 3595 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCStringLiteralClass"); |
| 3596 | 3596 | return ErrorUnexpected; |
| 3597 | | case clang::Stmt::ObjCSubscriptRefExprClass: |
| 3597 | case ZigClangStmt_ObjCSubscriptRefExprClass: |
| 3598 | 3598 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCSubscriptRefExprClass"); |
| 3599 | 3599 | return ErrorUnexpected; |
| 3600 | | case clang::Stmt::OffsetOfExprClass: |
| 3600 | case ZigClangStmt_OffsetOfExprClass: |
| 3601 | 3601 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OffsetOfExprClass"); |
| 3602 | 3602 | return ErrorUnexpected; |
| 3603 | | case clang::Stmt::OpaqueValueExprClass: |
| 3603 | case ZigClangStmt_OpaqueValueExprClass: |
| 3604 | 3604 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OpaqueValueExprClass"); |
| 3605 | 3605 | return ErrorUnexpected; |
| 3606 | | case clang::Stmt::UnresolvedLookupExprClass: |
| 3606 | case ZigClangStmt_UnresolvedLookupExprClass: |
| 3607 | 3607 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C UnresolvedLookupExprClass"); |
| 3608 | 3608 | return ErrorUnexpected; |
| 3609 | | case clang::Stmt::UnresolvedMemberExprClass: |
| 3609 | case ZigClangStmt_UnresolvedMemberExprClass: |
| 3610 | 3610 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C UnresolvedMemberExprClass"); |
| 3611 | 3611 | return ErrorUnexpected; |
| 3612 | | case clang::Stmt::PackExpansionExprClass: |
| 3612 | case ZigClangStmt_PackExpansionExprClass: |
| 3613 | 3613 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C PackExpansionExprClass"); |
| 3614 | 3614 | return ErrorUnexpected; |
| 3615 | | case clang::Stmt::ParenListExprClass: |
| 3615 | case ZigClangStmt_ParenListExprClass: |
| 3616 | 3616 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ParenListExprClass"); |
| 3617 | 3617 | return ErrorUnexpected; |
| 3618 | | case clang::Stmt::PseudoObjectExprClass: |
| 3618 | case ZigClangStmt_PseudoObjectExprClass: |
| 3619 | 3619 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C PseudoObjectExprClass"); |
| 3620 | 3620 | return ErrorUnexpected; |
| 3621 | | case clang::Stmt::ShuffleVectorExprClass: |
| 3621 | case ZigClangStmt_ShuffleVectorExprClass: |
| 3622 | 3622 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ShuffleVectorExprClass"); |
| 3623 | 3623 | return ErrorUnexpected; |
| 3624 | | case clang::Stmt::SizeOfPackExprClass: |
| 3624 | case ZigClangStmt_SizeOfPackExprClass: |
| 3625 | 3625 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C SizeOfPackExprClass"); |
| 3626 | 3626 | return ErrorUnexpected; |
| 3627 | | case clang::Stmt::SubstNonTypeTemplateParmExprClass: |
| 3627 | case ZigClangStmt_SubstNonTypeTemplateParmExprClass: |
| 3628 | 3628 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C SubstNonTypeTemplateParmExprClass"); |
| 3629 | 3629 | return ErrorUnexpected; |
| 3630 | | case clang::Stmt::SubstNonTypeTemplateParmPackExprClass: |
| 3630 | case ZigClangStmt_SubstNonTypeTemplateParmPackExprClass: |
| 3631 | 3631 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C SubstNonTypeTemplateParmPackExprClass"); |
| 3632 | 3632 | return ErrorUnexpected; |
| 3633 | | case clang::Stmt::TypeTraitExprClass: |
| 3633 | case ZigClangStmt_TypeTraitExprClass: |
| 3634 | 3634 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C TypeTraitExprClass"); |
| 3635 | 3635 | return ErrorUnexpected; |
| 3636 | | case clang::Stmt::TypoExprClass: |
| 3636 | case ZigClangStmt_TypoExprClass: |
| 3637 | 3637 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C TypoExprClass"); |
| 3638 | 3638 | return ErrorUnexpected; |
| 3639 | | case clang::Stmt::VAArgExprClass: |
| 3639 | case ZigClangStmt_VAArgExprClass: |
| 3640 | 3640 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C VAArgExprClass"); |
| 3641 | 3641 | return ErrorUnexpected; |
| 3642 | | case clang::Stmt::GotoStmtClass: |
| 3642 | case ZigClangStmt_GotoStmtClass: |
| 3643 | 3643 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C GotoStmtClass"); |
| 3644 | 3644 | return ErrorUnexpected; |
| 3645 | | case clang::Stmt::IndirectGotoStmtClass: |
| 3645 | case ZigClangStmt_IndirectGotoStmtClass: |
| 3646 | 3646 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C IndirectGotoStmtClass"); |
| 3647 | 3647 | return ErrorUnexpected; |
| 3648 | | case clang::Stmt::LabelStmtClass: |
| 3648 | case ZigClangStmt_LabelStmtClass: |
| 3649 | 3649 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C LabelStmtClass"); |
| 3650 | 3650 | return ErrorUnexpected; |
| 3651 | | case clang::Stmt::MSDependentExistsStmtClass: |
| 3651 | case ZigClangStmt_MSDependentExistsStmtClass: |
| 3652 | 3652 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C MSDependentExistsStmtClass"); |
| 3653 | 3653 | return ErrorUnexpected; |
| 3654 | | case clang::Stmt::OMPAtomicDirectiveClass: |
| 3654 | case ZigClangStmt_OMPAtomicDirectiveClass: |
| 3655 | 3655 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPAtomicDirectiveClass"); |
| 3656 | 3656 | return ErrorUnexpected; |
| 3657 | | case clang::Stmt::OMPBarrierDirectiveClass: |
| 3657 | case ZigClangStmt_OMPBarrierDirectiveClass: |
| 3658 | 3658 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPBarrierDirectiveClass"); |
| 3659 | 3659 | return ErrorUnexpected; |
| 3660 | | case clang::Stmt::OMPCancelDirectiveClass: |
| 3660 | case ZigClangStmt_OMPCancelDirectiveClass: |
| 3661 | 3661 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPCancelDirectiveClass"); |
| 3662 | 3662 | return ErrorUnexpected; |
| 3663 | | case clang::Stmt::OMPCancellationPointDirectiveClass: |
| 3663 | case ZigClangStmt_OMPCancellationPointDirectiveClass: |
| 3664 | 3664 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPCancellationPointDirectiveClass"); |
| 3665 | 3665 | return ErrorUnexpected; |
| 3666 | | case clang::Stmt::OMPCriticalDirectiveClass: |
| 3666 | case ZigClangStmt_OMPCriticalDirectiveClass: |
| 3667 | 3667 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPCriticalDirectiveClass"); |
| 3668 | 3668 | return ErrorUnexpected; |
| 3669 | | case clang::Stmt::OMPFlushDirectiveClass: |
| 3669 | case ZigClangStmt_OMPFlushDirectiveClass: |
| 3670 | 3670 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPFlushDirectiveClass"); |
| 3671 | 3671 | return ErrorUnexpected; |
| 3672 | | case clang::Stmt::OMPDistributeDirectiveClass: |
| 3672 | case ZigClangStmt_OMPDistributeDirectiveClass: |
| 3673 | 3673 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPDistributeDirectiveClass"); |
| 3674 | 3674 | return ErrorUnexpected; |
| 3675 | | case clang::Stmt::OMPDistributeParallelForDirectiveClass: |
| 3675 | case ZigClangStmt_OMPDistributeParallelForDirectiveClass: |
| 3676 | 3676 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPDistributeParallelForDirectiveClass"); |
| 3677 | 3677 | return ErrorUnexpected; |
| 3678 | | case clang::Stmt::OMPDistributeParallelForSimdDirectiveClass: |
| 3678 | case ZigClangStmt_OMPDistributeParallelForSimdDirectiveClass: |
| 3679 | 3679 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPDistributeParallelForSimdDirectiveClass"); |
| 3680 | 3680 | return ErrorUnexpected; |
| 3681 | | case clang::Stmt::OMPDistributeSimdDirectiveClass: |
| 3681 | case ZigClangStmt_OMPDistributeSimdDirectiveClass: |
| 3682 | 3682 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPDistributeSimdDirectiveClass"); |
| 3683 | 3683 | return ErrorUnexpected; |
| 3684 | | case clang::Stmt::OMPForDirectiveClass: |
| 3684 | case ZigClangStmt_OMPForDirectiveClass: |
| 3685 | 3685 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPForDirectiveClass"); |
| 3686 | 3686 | return ErrorUnexpected; |
| 3687 | | case clang::Stmt::OMPForSimdDirectiveClass: |
| 3687 | case ZigClangStmt_OMPForSimdDirectiveClass: |
| 3688 | 3688 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPForSimdDirectiveClass"); |
| 3689 | 3689 | return ErrorUnexpected; |
| 3690 | | case clang::Stmt::OMPParallelForDirectiveClass: |
| 3690 | case ZigClangStmt_OMPParallelForDirectiveClass: |
| 3691 | 3691 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPParallelForDirectiveClass"); |
| 3692 | 3692 | return ErrorUnexpected; |
| 3693 | | case clang::Stmt::OMPParallelForSimdDirectiveClass: |
| 3693 | case ZigClangStmt_OMPParallelForSimdDirectiveClass: |
| 3694 | 3694 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPParallelForSimdDirectiveClass"); |
| 3695 | 3695 | return ErrorUnexpected; |
| 3696 | | case clang::Stmt::OMPSimdDirectiveClass: |
| 3696 | case ZigClangStmt_OMPSimdDirectiveClass: |
| 3697 | 3697 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPSimdDirectiveClass"); |
| 3698 | 3698 | return ErrorUnexpected; |
| 3699 | | case clang::Stmt::OMPTargetParallelForSimdDirectiveClass: |
| 3699 | case ZigClangStmt_OMPTargetParallelForSimdDirectiveClass: |
| 3700 | 3700 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTargetParallelForSimdDirectiveClass"); |
| 3701 | 3701 | return ErrorUnexpected; |
| 3702 | | case clang::Stmt::OMPTargetSimdDirectiveClass: |
| 3702 | case ZigClangStmt_OMPTargetSimdDirectiveClass: |
| 3703 | 3703 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTargetSimdDirectiveClass"); |
| 3704 | 3704 | return ErrorUnexpected; |
| 3705 | | case clang::Stmt::OMPTargetTeamsDistributeDirectiveClass: |
| 3705 | case ZigClangStmt_OMPTargetTeamsDistributeDirectiveClass: |
| 3706 | 3706 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTargetTeamsDistributeDirectiveClass"); |
| 3707 | 3707 | return ErrorUnexpected; |
| 3708 | | case clang::Stmt::OMPTargetTeamsDistributeParallelForDirectiveClass: |
| 3708 | case ZigClangStmt_OMPTargetTeamsDistributeParallelForDirectiveClass: |
| 3709 | 3709 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTargetTeamsDistributeParallelForDirectiveClass"); |
| 3710 | 3710 | return ErrorUnexpected; |
| 3711 | | case clang::Stmt::OMPTargetTeamsDistributeParallelForSimdDirectiveClass: |
| 3711 | case ZigClangStmt_OMPTargetTeamsDistributeParallelForSimdDirectiveClass: |
| 3712 | 3712 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTargetTeamsDistributeParallelForSimdDirectiveClass"); |
| 3713 | 3713 | return ErrorUnexpected; |
| 3714 | | case clang::Stmt::OMPTargetTeamsDistributeSimdDirectiveClass: |
| 3714 | case ZigClangStmt_OMPTargetTeamsDistributeSimdDirectiveClass: |
| 3715 | 3715 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTargetTeamsDistributeSimdDirectiveClass"); |
| 3716 | 3716 | return ErrorUnexpected; |
| 3717 | | case clang::Stmt::OMPTaskLoopDirectiveClass: |
| 3717 | case ZigClangStmt_OMPTaskLoopDirectiveClass: |
| 3718 | 3718 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTaskLoopDirectiveClass"); |
| 3719 | 3719 | return ErrorUnexpected; |
| 3720 | | case clang::Stmt::OMPTaskLoopSimdDirectiveClass: |
| 3720 | case ZigClangStmt_OMPTaskLoopSimdDirectiveClass: |
| 3721 | 3721 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTaskLoopSimdDirectiveClass"); |
| 3722 | 3722 | return ErrorUnexpected; |
| 3723 | | case clang::Stmt::OMPTeamsDistributeDirectiveClass: |
| 3723 | case ZigClangStmt_OMPTeamsDistributeDirectiveClass: |
| 3724 | 3724 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTeamsDistributeDirectiveClass"); |
| 3725 | 3725 | return ErrorUnexpected; |
| 3726 | | case clang::Stmt::OMPTeamsDistributeParallelForDirectiveClass: |
| 3726 | case ZigClangStmt_OMPTeamsDistributeParallelForDirectiveClass: |
| 3727 | 3727 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTeamsDistributeParallelForDirectiveClass"); |
| 3728 | 3728 | return ErrorUnexpected; |
| 3729 | | case clang::Stmt::OMPTeamsDistributeParallelForSimdDirectiveClass: |
| 3729 | case ZigClangStmt_OMPTeamsDistributeParallelForSimdDirectiveClass: |
| 3730 | 3730 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTeamsDistributeParallelForSimdDirectiveClass"); |
| 3731 | 3731 | return ErrorUnexpected; |
| 3732 | | case clang::Stmt::OMPTeamsDistributeSimdDirectiveClass: |
| 3732 | case ZigClangStmt_OMPTeamsDistributeSimdDirectiveClass: |
| 3733 | 3733 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTeamsDistributeSimdDirectiveClass"); |
| 3734 | 3734 | return ErrorUnexpected; |
| 3735 | | case clang::Stmt::OMPMasterDirectiveClass: |
| 3735 | case ZigClangStmt_OMPMasterDirectiveClass: |
| 3736 | 3736 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPMasterDirectiveClass"); |
| 3737 | 3737 | return ErrorUnexpected; |
| 3738 | | case clang::Stmt::OMPOrderedDirectiveClass: |
| 3738 | case ZigClangStmt_OMPOrderedDirectiveClass: |
| 3739 | 3739 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPOrderedDirectiveClass"); |
| 3740 | 3740 | return ErrorUnexpected; |
| 3741 | | case clang::Stmt::OMPParallelDirectiveClass: |
| 3741 | case ZigClangStmt_OMPParallelDirectiveClass: |
| 3742 | 3742 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPParallelDirectiveClass"); |
| 3743 | 3743 | return ErrorUnexpected; |
| 3744 | | case clang::Stmt::OMPParallelSectionsDirectiveClass: |
| 3744 | case ZigClangStmt_OMPParallelSectionsDirectiveClass: |
| 3745 | 3745 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPParallelSectionsDirectiveClass"); |
| 3746 | 3746 | return ErrorUnexpected; |
| 3747 | | case clang::Stmt::OMPSectionDirectiveClass: |
| 3747 | case ZigClangStmt_OMPSectionDirectiveClass: |
| 3748 | 3748 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPSectionDirectiveClass"); |
| 3749 | 3749 | return ErrorUnexpected; |
| 3750 | | case clang::Stmt::OMPSectionsDirectiveClass: |
| 3750 | case ZigClangStmt_OMPSectionsDirectiveClass: |
| 3751 | 3751 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPSectionsDirectiveClass"); |
| 3752 | 3752 | return ErrorUnexpected; |
| 3753 | | case clang::Stmt::OMPSingleDirectiveClass: |
| 3753 | case ZigClangStmt_OMPSingleDirectiveClass: |
| 3754 | 3754 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPSingleDirectiveClass"); |
| 3755 | 3755 | return ErrorUnexpected; |
| 3756 | | case clang::Stmt::OMPTargetDataDirectiveClass: |
| 3756 | case ZigClangStmt_OMPTargetDataDirectiveClass: |
| 3757 | 3757 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTargetDataDirectiveClass"); |
| 3758 | 3758 | return ErrorUnexpected; |
| 3759 | | case clang::Stmt::OMPTargetDirectiveClass: |
| 3759 | case ZigClangStmt_OMPTargetDirectiveClass: |
| 3760 | 3760 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTargetDirectiveClass"); |
| 3761 | 3761 | return ErrorUnexpected; |
| 3762 | | case clang::Stmt::OMPTargetEnterDataDirectiveClass: |
| 3762 | case ZigClangStmt_OMPTargetEnterDataDirectiveClass: |
| 3763 | 3763 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTargetEnterDataDirectiveClass"); |
| 3764 | 3764 | return ErrorUnexpected; |
| 3765 | | case clang::Stmt::OMPTargetExitDataDirectiveClass: |
| 3765 | case ZigClangStmt_OMPTargetExitDataDirectiveClass: |
| 3766 | 3766 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTargetExitDataDirectiveClass"); |
| 3767 | 3767 | return ErrorUnexpected; |
| 3768 | | case clang::Stmt::OMPTargetParallelDirectiveClass: |
| 3768 | case ZigClangStmt_OMPTargetParallelDirectiveClass: |
| 3769 | 3769 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTargetParallelDirectiveClass"); |
| 3770 | 3770 | return ErrorUnexpected; |
| 3771 | | case clang::Stmt::OMPTargetParallelForDirectiveClass: |
| 3771 | case ZigClangStmt_OMPTargetParallelForDirectiveClass: |
| 3772 | 3772 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTargetParallelForDirectiveClass"); |
| 3773 | 3773 | return ErrorUnexpected; |
| 3774 | | case clang::Stmt::OMPTargetTeamsDirectiveClass: |
| 3774 | case ZigClangStmt_OMPTargetTeamsDirectiveClass: |
| 3775 | 3775 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTargetTeamsDirectiveClass"); |
| 3776 | 3776 | return ErrorUnexpected; |
| 3777 | | case clang::Stmt::OMPTargetUpdateDirectiveClass: |
| 3777 | case ZigClangStmt_OMPTargetUpdateDirectiveClass: |
| 3778 | 3778 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTargetUpdateDirectiveClass"); |
| 3779 | 3779 | return ErrorUnexpected; |
| 3780 | | case clang::Stmt::OMPTaskDirectiveClass: |
| 3780 | case ZigClangStmt_OMPTaskDirectiveClass: |
| 3781 | 3781 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTaskDirectiveClass"); |
| 3782 | 3782 | return ErrorUnexpected; |
| 3783 | | case clang::Stmt::OMPTaskgroupDirectiveClass: |
| 3783 | case ZigClangStmt_OMPTaskgroupDirectiveClass: |
| 3784 | 3784 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTaskgroupDirectiveClass"); |
| 3785 | 3785 | return ErrorUnexpected; |
| 3786 | | case clang::Stmt::OMPTaskwaitDirectiveClass: |
| 3786 | case ZigClangStmt_OMPTaskwaitDirectiveClass: |
| 3787 | 3787 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTaskwaitDirectiveClass"); |
| 3788 | 3788 | return ErrorUnexpected; |
| 3789 | | case clang::Stmt::OMPTaskyieldDirectiveClass: |
| 3789 | case ZigClangStmt_OMPTaskyieldDirectiveClass: |
| 3790 | 3790 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTaskyieldDirectiveClass"); |
| 3791 | 3791 | return ErrorUnexpected; |
| 3792 | | case clang::Stmt::OMPTeamsDirectiveClass: |
| 3792 | case ZigClangStmt_OMPTeamsDirectiveClass: |
| 3793 | 3793 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C OMPTeamsDirectiveClass"); |
| 3794 | 3794 | return ErrorUnexpected; |
| 3795 | | case clang::Stmt::ObjCAtCatchStmtClass: |
| 3795 | case ZigClangStmt_ObjCAtCatchStmtClass: |
| 3796 | 3796 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCAtCatchStmtClass"); |
| 3797 | 3797 | return ErrorUnexpected; |
| 3798 | | case clang::Stmt::ObjCAtFinallyStmtClass: |
| 3798 | case ZigClangStmt_ObjCAtFinallyStmtClass: |
| 3799 | 3799 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCAtFinallyStmtClass"); |
| 3800 | 3800 | return ErrorUnexpected; |
| 3801 | | case clang::Stmt::ObjCAtSynchronizedStmtClass: |
| 3801 | case ZigClangStmt_ObjCAtSynchronizedStmtClass: |
| 3802 | 3802 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCAtSynchronizedStmtClass"); |
| 3803 | 3803 | return ErrorUnexpected; |
| 3804 | | case clang::Stmt::ObjCAtThrowStmtClass: |
| 3804 | case ZigClangStmt_ObjCAtThrowStmtClass: |
| 3805 | 3805 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCAtThrowStmtClass"); |
| 3806 | 3806 | return ErrorUnexpected; |
| 3807 | | case clang::Stmt::ObjCAtTryStmtClass: |
| 3807 | case ZigClangStmt_ObjCAtTryStmtClass: |
| 3808 | 3808 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCAtTryStmtClass"); |
| 3809 | 3809 | return ErrorUnexpected; |
| 3810 | | case clang::Stmt::ObjCAutoreleasePoolStmtClass: |
| 3810 | case ZigClangStmt_ObjCAutoreleasePoolStmtClass: |
| 3811 | 3811 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCAutoreleasePoolStmtClass"); |
| 3812 | 3812 | return ErrorUnexpected; |
| 3813 | | case clang::Stmt::ObjCForCollectionStmtClass: |
| 3813 | case ZigClangStmt_ObjCForCollectionStmtClass: |
| 3814 | 3814 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C ObjCForCollectionStmtClass"); |
| 3815 | 3815 | return ErrorUnexpected; |
| 3816 | | case clang::Stmt::SEHExceptStmtClass: |
| 3816 | case ZigClangStmt_SEHExceptStmtClass: |
| 3817 | 3817 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C SEHExceptStmtClass"); |
| 3818 | 3818 | return ErrorUnexpected; |
| 3819 | | case clang::Stmt::SEHFinallyStmtClass: |
| 3819 | case ZigClangStmt_SEHFinallyStmtClass: |
| 3820 | 3820 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C SEHFinallyStmtClass"); |
| 3821 | 3821 | return ErrorUnexpected; |
| 3822 | | case clang::Stmt::SEHLeaveStmtClass: |
| 3822 | case ZigClangStmt_SEHLeaveStmtClass: |
| 3823 | 3823 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C SEHLeaveStmtClass"); |
| 3824 | 3824 | return ErrorUnexpected; |
| 3825 | | case clang::Stmt::SEHTryStmtClass: |
| 3825 | case ZigClangStmt_SEHTryStmtClass: |
| 3826 | 3826 | emit_warning(c, bitcast(stmt->getBeginLoc()), "TODO handle C SEHTryStmtClass"); |
| 3827 | 3827 | return ErrorUnexpected; |
| 3828 | 3828 | } |