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

Function mkAnonVoidFunctionPointer

ASTHelpers.cpp:212–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210//-----------------------------------------------------------------------------
211
212static QualType mkAnonVoidFunctionPointer()
213{
214 auto voidPtr = Ptr(VoidTy());
215
216 params_store params{{""s, voidPtr}};
217
218 return Ptr(Function(""sv, voidPtr, to_params_view(params))->getType());
219}
220//-----------------------------------------------------------------------------
221
222static FunctionDecl* CreateFunctionDecl(std::string_view funcName, params_vector params)

Callers 1

CastToVoidFunPtrFunction · 0.85

Calls 4

PtrFunction · 0.85
VoidTyFunction · 0.85
FunctionFunction · 0.85
to_params_viewFunction · 0.85

Tested by

no test coverage detected