MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / Parameter

Function Parameter

ASTHelpers.cpp:349–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347//-----------------------------------------------------------------------------
348
349ParmVarDecl* 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
365static auto*

Callers 2

InsertCoroutineMethod · 0.85
FunctionBaseFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected