mirror of
https://github.com/ziglang/zig.git
synced 2025-12-25 15:43:06 +00:00
Adapt to clang API additions
This commit is contained in:
parent
bd3a633e4d
commit
230d27c1cd
@ -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();
|
||||
}
|
||||
|
||||
@ -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, "");
|
||||
|
||||
@ -283,6 +283,7 @@ enum ZigClangStmtClass {
|
||||
ZigClangStmt_OMPDistributeSimdDirectiveClass,
|
||||
ZigClangStmt_OMPForDirectiveClass,
|
||||
ZigClangStmt_OMPForSimdDirectiveClass,
|
||||
ZigClangStmt_OMPMasterTaskLoopDirectiveClass,
|
||||
ZigClangStmt_OMPParallelForDirectiveClass,
|
||||
ZigClangStmt_OMPParallelForSimdDirectiveClass,
|
||||
ZigClangStmt_OMPSimdDirectiveClass,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user