source: translator/SynTree/CompoundStmt.cc @ b1a6d6b

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since b1a6d6b was b1a6d6b, checked in by Rob Schluntz <rschlunt@…>, 9 years ago

removed duplicate adapters, switch to c99 for initializer declarations

  • Property mode set to 100644
File size: 685 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#include <iostream>
14using namespace std;
15
16CompoundStmt::CompoundStmt( std::list<Label> labels )
17    : Statement( labels )
18{
19}
20
21CompoundStmt::CompoundStmt( const CompoundStmt &other )
22    : Statement( other )
23{
24    cloneAll( other.kids, kids );
25}
26
27CompoundStmt::~CompoundStmt()
28{
29    deleteAll( kids );
30}
31
32void 
33CompoundStmt::print( std::ostream &os, int indent )
34{
35    os << "\r" << string(indent, ' ') << "CompoundStmt" << endl ;
36    printAll( kids, os, indent+2 );
37}
38
39
40
41
42
Note: See TracBrowser for help on using the repository browser.