| 347 | //----------------------------------------------------------------------------- |
| 348 | |
| 349 | ParmVarDecl* Parameter(const FunctionDecl* fd, std::string_view name, QualType type) |
| 350 | { |
| 351 | auto& ctx = GetGlobalAST(); |
| 352 | |
| 353 | return ParmVarDecl::Create(const_cast<ASTContext&>(ctx), |
| 354 | const_cast<FunctionDecl*>(fd), |
| 355 | {}, |
| 356 | {}, |
| 357 | &ctx.Idents.get(name), |
| 358 | type, |
| 359 | nullptr, |
| 360 | SC_None, |
| 361 | nullptr); |
| 362 | } |
| 363 | //----------------------------------------------------------------------------- |
| 364 | |
| 365 | static auto* |
no test coverage detected