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

Function CreateCoroFunctionDecl

CoroutinesCodeGenerator.cpp:81–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79//-----------------------------------------------------------------------------
80
81static auto* CreateCoroFunctionDecl(std::string funcName, QualType type)
82{
83 params_vector params{{CORO_FRAME_NAME, type}};
84 const std::string coroFsmName{BuildInternalVarName(funcName)};
85
86 return Function(coroFsmName, VoidTy(), params);
87}
88//-----------------------------------------------------------------------------
89
90static void SetFunctionBody(FunctionDecl* fd, StmtsContainer& bodyStmts)

Callers 1

InsertCoroutineMethod · 0.85

Calls 3

BuildInternalVarNameFunction · 0.85
FunctionFunction · 0.85
VoidTyFunction · 0.85

Tested by

no test coverage detected