| 537 | //----------------------------------------------------------------------------- |
| 538 | |
| 539 | FieldDecl* mkFieldDecl(DeclContext* dc, std::string_view name, QualType type) |
| 540 | { |
| 541 | auto& ctx = GetGlobalAST(); |
| 542 | auto* fieldDecl = |
| 543 | FieldDecl::Create(ctx, dc, {}, {}, &ctx.Idents.get(name), type, nullptr, nullptr, false, ICIS_NoInit); |
| 544 | fieldDecl->setAccess(AS_public); |
| 545 | |
| 546 | return fieldDecl; |
| 547 | } |
| 548 | //----------------------------------------------------------------------------- |
| 549 | |
| 550 | InitListExpr* InitList(ArrayRef<Expr*> initExprs, QualType t) |
no test coverage detected