authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-10-13 10:59:01+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-13 11:08:16-04:00
log230d27c1cd00e7adf0ccfca2c8bb73ae1779aa4c
tree499c432edeffff6a2efc5b762244f14012be0d2b
parentbd3a633e4d709e462f9435f94f9c6868980f7089

Adapt to clang API additions


3 files changed, 6 insertions(+), 0 deletions(-)

src/translate_c.cpp+3
......@@ -4113,6 +4113,9 @@ static int trans_stmt_extra(Context *c, TransScope *scope, const ZigClangStmt *s
41134113 case ZigClangStmt_SourceLocExprClass:
41144114 emit_warning(c, ZigClangStmt_getBeginLoc(stmt), "TODO handle C SourceLocExprClass");
41154115 return ErrorUnexpected;
4116 case ZigClangStmt_OMPMasterTaskLoopDirectiveClass:
4117 emit_warning(c, ZigClangStmt_getBeginLoc(stmt), "TODO handle C OMPMasterTaskLoopDirectiveClass");
4118 return ErrorUnexpected;
41164119 }
41174120 zig_unreachable();
41184121}
src/zig_clang.cpp+2
......@@ -533,6 +533,7 @@ void ZigClang_detect_enum_StmtClass(clang::Stmt::StmtClass x) {
533533 case clang::Stmt::OMPSimdDirectiveClass:
534534 case clang::Stmt::OMPForDirectiveClass:
535535 case clang::Stmt::OMPForSimdDirectiveClass:
536 case clang::Stmt::OMPMasterTaskLoopDirectiveClass:
536537 case clang::Stmt::OMPSectionsDirectiveClass:
537538 case clang::Stmt::OMPSectionDirectiveClass:
538539 case clang::Stmt::OMPSingleDirectiveClass:
......@@ -736,6 +737,7 @@ static_assert((clang::Stmt::StmtClass)ZigClangStmt_OMPParallelDirectiveClass ==
736737static_assert((clang::Stmt::StmtClass)ZigClangStmt_OMPSimdDirectiveClass == clang::Stmt::OMPSimdDirectiveClass, "");
737738static_assert((clang::Stmt::StmtClass)ZigClangStmt_OMPForDirectiveClass == clang::Stmt::OMPForDirectiveClass, "");
738739static_assert((clang::Stmt::StmtClass)ZigClangStmt_OMPForSimdDirectiveClass == clang::Stmt::OMPForSimdDirectiveClass, "");
740static_assert((clang::Stmt::StmtClass)ZigClangStmt_OMPMasterTaskLoopDirectiveClass == clang::Stmt::OMPMasterTaskLoopDirectiveClass, "");
739741static_assert((clang::Stmt::StmtClass)ZigClangStmt_OMPSectionsDirectiveClass == clang::Stmt::OMPSectionsDirectiveClass, "");
740742static_assert((clang::Stmt::StmtClass)ZigClangStmt_OMPSectionDirectiveClass == clang::Stmt::OMPSectionDirectiveClass, "");
741743static_assert((clang::Stmt::StmtClass)ZigClangStmt_OMPSingleDirectiveClass == clang::Stmt::OMPSingleDirectiveClass, "");
src/zig_clang.h+1
......@@ -283,6 +283,7 @@ enum ZigClangStmtClass {
283283 ZigClangStmt_OMPDistributeSimdDirectiveClass,
284284 ZigClangStmt_OMPForDirectiveClass,
285285 ZigClangStmt_OMPForSimdDirectiveClass,
286 ZigClangStmt_OMPMasterTaskLoopDirectiveClass,
286287 ZigClangStmt_OMPParallelForDirectiveClass,
287288 ZigClangStmt_OMPParallelForSimdDirectiveClass,
288289 ZigClangStmt_OMPSimdDirectiveClass,