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 d11f789 was
51b7345,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
initial commit
|
-
Property mode set to
100644
|
File size:
592 bytes
|
Rev | Line | |
---|
[51b7345] | 1 | /* |
---|
| 2 | * This file is part of the Cforall project |
---|
| 3 | * |
---|
| 4 | * $Id: DeclStmt.cc,v 1.4 2005/08/29 20:59:25 rcbilson Exp $ |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Statement.h" |
---|
| 9 | #include "Declaration.h" |
---|
| 10 | #include "utility.h" |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | DeclStmt::DeclStmt( std::list<Label> labels, Declaration *decl ) |
---|
| 14 | : Statement( labels ), decl( decl ) |
---|
| 15 | { |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | DeclStmt::DeclStmt( const DeclStmt &other ) |
---|
| 19 | : Statement( other ), decl( maybeClone( other.decl ) ) |
---|
| 20 | { |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | DeclStmt::~DeclStmt() |
---|
| 24 | { |
---|
| 25 | delete decl; |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | void |
---|
| 29 | DeclStmt::print( std::ostream &os, int indent ) |
---|
| 30 | { |
---|
| 31 | os << "Declaration of "; |
---|
| 32 | if( decl ) { |
---|
| 33 | decl->print( os, indent ); |
---|
| 34 | } |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.