| 491 | //----------------------------------------------------------------------------- |
| 492 | |
| 493 | VarDecl* Variable(std::string_view name, QualType type, DeclContext* dc) |
| 494 | { |
| 495 | auto& ctx = GetGlobalAST(); |
| 496 | |
| 497 | if(nullptr == dc) { |
| 498 | dc = GetGlobalAST().getTranslationUnitDecl(); |
| 499 | } |
| 500 | |
| 501 | return VarDecl::Create(const_cast<ASTContext&>(ctx), dc, {}, {}, &ctx.Idents.get(name), type, nullptr, SC_None); |
| 502 | } |
| 503 | //----------------------------------------------------------------------------- |
| 504 | |
| 505 | NullStmt* mkNullStmt() |
no test coverage detected