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

Function ReplaceNode

ASTHelpers.cpp:744–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742//-----------------------------------------------------------------------------
743
744void ReplaceNode(Stmt* parent, Stmt* oldNode, Stmt* newNode)
745{
746 std::replace(parent->child_begin(), parent->child_end(), oldNode, newNode);
747}
748//-----------------------------------------------------------------------------
749
750SmallVector<Expr*, 5> ArgsToExprVector(const Expr* expr)

Callers 8

VisitCompoundStmtMethod · 0.85
VisitForStmtMethod · 0.85
VisitDeclRefExprMethod · 0.85
VisitCXXThisExprMethod · 0.85
VisitCoawaitExprMethod · 0.85
VisitContinueStmtMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected