Commit 230d27c1cd
Changed files (3)
src/translate_c.cpp
@@ -4113,6 +4113,9 @@ static int trans_stmt_extra(Context *c, TransScope *scope, const ZigClangStmt *s
case ZigClangStmt_SourceLocExprClass:
emit_warning(c, ZigClangStmt_getBeginLoc(stmt), "TODO handle C SourceLocExprClass");
return ErrorUnexpected;
+ case ZigClangStmt_OMPMasterTaskLoopDirectiveClass:
+ emit_warning(c, ZigClangStmt_getBeginLoc(stmt), "TODO handle C OMPMasterTaskLoopDirectiveClass");
+ return ErrorUnexpected;
}
zig_unreachable();
}
src/zig_clang.cpp
@@ -533,6 +533,7 @@ void ZigClang_detect_enum_StmtClass(clang::Stmt::StmtClass x) {
case clang::Stmt::OMPSimdDirectiveClass:
case clang::Stmt::OMPForDirectiveClass:
case clang::Stmt::OMPForSimdDirectiveClass:
+ case clang::Stmt::OMPMasterTaskLoopDirectiveClass:
case clang::Stmt::OMPSectionsDirectiveClass:
case clang::Stmt::OMPSectionDirectiveClass:
case clang::Stmt::OMPSingleDirectiveClass:
@@ -736,6 +737,7 @@ static_assert((clang::Stmt::StmtClass)ZigClangStmt_OMPParallelDirectiveClass ==
static_assert((clang::Stmt::StmtClass)ZigClangStmt_OMPSimdDirectiveClass == clang::Stmt::OMPSimdDirectiveClass, "");
static_assert((clang::Stmt::StmtClass)ZigClangStmt_OMPForDirectiveClass == clang::Stmt::OMPForDirectiveClass, "");
static_assert((clang::Stmt::StmtClass)ZigClangStmt_OMPForSimdDirectiveClass == clang::Stmt::OMPForSimdDirectiveClass, "");
+static_assert((clang::Stmt::StmtClass)ZigClangStmt_OMPMasterTaskLoopDirectiveClass == clang::Stmt::OMPMasterTaskLoopDirectiveClass, "");
static_assert((clang::Stmt::StmtClass)ZigClangStmt_OMPSectionsDirectiveClass == clang::Stmt::OMPSectionsDirectiveClass, "");
static_assert((clang::Stmt::StmtClass)ZigClangStmt_OMPSectionDirectiveClass == clang::Stmt::OMPSectionDirectiveClass, "");
static_assert((clang::Stmt::StmtClass)ZigClangStmt_OMPSingleDirectiveClass == clang::Stmt::OMPSingleDirectiveClass, "");
src/zig_clang.h
@@ -283,6 +283,7 @@ enum ZigClangStmtClass {
ZigClangStmt_OMPDistributeSimdDirectiveClass,
ZigClangStmt_OMPForDirectiveClass,
ZigClangStmt_OMPForSimdDirectiveClass,
+ ZigClangStmt_OMPMasterTaskLoopDirectiveClass,
ZigClangStmt_OMPParallelForDirectiveClass,
ZigClangStmt_OMPParallelForSimdDirectiveClass,
ZigClangStmt_OMPSimdDirectiveClass,