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

Function CastToVoidFunPtr

ASTHelpers.cpp:228–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226//-----------------------------------------------------------------------------
227
228CXXStaticCastExpr* CastToVoidFunPtr(std::string_view name)
229{
230 return Cast(mkDeclRefExpr(CreateFunctionDecl(name, {})), mkAnonVoidFunctionPointer());
231}
232//-----------------------------------------------------------------------------
233
234CXXReinterpretCastExpr* ReinterpretCast(QualType toType, const Expr* toExpr, bool makePointer)

Callers 2

CallVecDeleteOrDtorFunction · 0.85
CallVecNewOrCtorFunction · 0.85

Calls 4

CastFunction · 0.85
mkDeclRefExprFunction · 0.85
CreateFunctionDeclFunction · 0.85

Tested by

no test coverage detected