source: translator/SynTree/CompoundStmt.cc@ 9df2dd5

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay gc_noraii jacob/cs343-translation jenkins-sandbox memory new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new string with_gc
Last change on this file since 9df2dd5 was 51b73452, checked in by Peter A. Buhr <pabuhr@…>, 11 years ago

initial commit

  • Property mode set to 100644
File size: 576 bytes
Line 
1/*
2 * This file is part of the Cforall project
3 *
4 * $Id: CompoundStmt.cc,v 1.4 2005/08/29 20:59:25 rcbilson Exp $
5 *
6 */
7
8#include "Statement.h"
9#include "utility.h"
10#include <algorithm>
11#include <functional>
12
13
14CompoundStmt::CompoundStmt( std::list<Label> labels )
15 : Statement( labels )
16{
17}
18
19CompoundStmt::CompoundStmt( const CompoundStmt &other )
20 : Statement( other )
21{
22 cloneAll( other.kids, kids );
23}
24
25CompoundStmt::~CompoundStmt()
26{
27 deleteAll( kids );
28}
29
30void
31CompoundStmt::print( std::ostream &os, int indent )
32{
33 printAll( kids, os, indent );
34}
35
36
37
38
39
Note: See TracBrowser for help on using the repository browser.