| 413 | //----------------------------------------------------------------------------- |
| 414 | |
| 415 | auto* mkStdFunctionDecl(std::string_view name, QualType returnType, const params_vector& parameters) |
| 416 | { |
| 417 | auto& ctx = GetGlobalAST(); |
| 418 | NamespaceDecl* stdNs = NamespaceDecl::Create(const_cast<ASTContext&>(ctx), |
| 419 | ctx.getTranslationUnitDecl(), |
| 420 | false, |
| 421 | {}, |
| 422 | {}, |
| 423 | &ctx.Idents.get("std"), |
| 424 | nullptr, |
| 425 | false); |
| 426 | |
| 427 | return FunctionBase(name, returnType, parameters, stdNs); |
| 428 | } |
| 429 | //----------------------------------------------------------------------------- |
| 430 | |
| 431 | DeclRefExpr* mkDeclRefExpr(const ValueDecl* vd) |
nothing calls this directly
no test coverage detected