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 c11e31c was
c11e31c,
checked in by Peter A. Buhr <pabuhr@…>, 9 years ago
|
add inline and attribute qualifiers, cfa.y comment formatting, fix error message in isIntegralType
|
-
Property mode set to
100644
|
File size:
692 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 | using std::string; |
---|
14 | using std::endl; |
---|
15 | |
---|
16 | CompoundStmt::CompoundStmt( std::list<Label> labels ) |
---|
17 | : Statement( labels ) |
---|
18 | { |
---|
19 | } |
---|
20 | |
---|
21 | CompoundStmt::CompoundStmt( const CompoundStmt &other ) |
---|
22 | : Statement( other ) |
---|
23 | { |
---|
24 | cloneAll( other.kids, kids ); |
---|
25 | } |
---|
26 | |
---|
27 | CompoundStmt::~CompoundStmt() |
---|
28 | { |
---|
29 | deleteAll( kids ); |
---|
30 | } |
---|
31 | |
---|
32 | void |
---|
33 | CompoundStmt::print( std::ostream &os, int indent ) |
---|
34 | { |
---|
35 | os << "\r" << string(indent, ' ') << "CompoundStmt Statement" << endl ; |
---|
36 | printAll( kids, os, indent + 4 ); |
---|
37 | } |
---|
38 | |
---|
39 | |
---|
40 | |
---|
41 | |
---|
42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.