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

Function mkDeclRefExpr

ASTHelpers.cpp:431–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429//-----------------------------------------------------------------------------
430
431DeclRefExpr* mkDeclRefExpr(const ValueDecl* vd)
432{
433 return DeclRefExpr::Create(GetGlobalAST(),
434 NestedNameSpecifierLoc{},
435 SourceLocation{},
436 const_cast<ValueDecl*>(vd),
437 false,
438 SourceLocation{},
439 vd->getType(),
440 VK_LValue,
441 nullptr,
442 nullptr,
443 NOUR_None);
444}
445//-----------------------------------------------------------------------------
446
447ImplicitCastExpr* CastLToRValue(const VarDecl* vd)

Callers 15

VisitCoawaitExprMethod · 0.85
InsertCoroutineMethod · 0.85
AssignFunction · 0.85
RefFunction · 0.85
CallFunction · 0.85
CastToVoidFunPtrFunction · 0.85
CastLToRValueFunction · 0.85
ReturnFunction · 0.85
mkVarDeclRefExprFunction · 0.85
CallConstructorFunction · 0.85
CallDestructorFunction · 0.85
AndFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected