| 731 | //----------------------------------------------------------------------------- |
| 732 | |
| 733 | void 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 | |
| 744 | void ReplaceNode(Stmt* parent, Stmt* oldNode, Stmt* newNode) |
no test coverage detected