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

Method AddBodyStmts

ASTHelpers.cpp:733–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731//-----------------------------------------------------------------------------
732
733void StmtsContainer::AddBodyStmts(Stmt* body)
734{
735 if(auto* b = dyn_cast_or_null<CompoundStmt>(body)) {
736 auto children = b->children();
737 mStmts.append(children.begin(), children.end());
738 } else if(not isa<NullStmt>(body)) {
739 mStmts.push_back(body);
740 }
741}
742//-----------------------------------------------------------------------------
743
744void ReplaceNode(Stmt* parent, Stmt* oldNode, Stmt* newNode)

Callers 5

InsertArgMethod · 0.80
EmitGlobalVariableCtorsFunction · 0.80
InsertVtblPtrFunction · 0.80
InsertCXXMethodDeclMethod · 0.80

Calls 3

childrenMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected