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

Function CastLToRValue

ASTHelpers.cpp:447–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445//-----------------------------------------------------------------------------
446
447ImplicitCastExpr* CastLToRValue(const VarDecl* vd)
448{
449 return ImplicitCastExpr::Create(
450 GetGlobalAST(), vd->getType(), CK_LValueToRValue, mkDeclRefExpr(vd), {}, VK_LValue, {});
451}
452//-----------------------------------------------------------------------------
453
454CXXMemberCallExpr* CallMemberFun(Expr* memExpr, QualType retType /*, const std::vector<Expr*>& params*/)

Callers 1

InsertDtorCallMethod · 0.85

Calls 1

mkDeclRefExprFunction · 0.85

Tested by

no test coverage detected