Changeset 2d019af for src/SynTree/Declaration.cc
- Timestamp:
- Mar 12, 2021, 11:14:29 PM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 41ca6fa, e867b44
- Parents:
- 6083392
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.cc
r6083392 r2d019af 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Dec 11 16:39:56 201913 // Update Count : 3 612 // Last Modified On : Fri Mar 12 18:35:39 2021 13 // Update Count : 37 14 14 // 15 15 … … 66 66 67 67 68 DirectiveDecl::DirectiveDecl( DirectiveStmt *stmt ) : Declaration( "", Type::StorageClasses(), LinkageSpec::C ), stmt( stmt ) { 69 } 70 71 DirectiveDecl::DirectiveDecl( const DirectiveDecl &other ) : Declaration( other ), stmt( maybeClone( other.stmt ) ) { 72 } 73 74 DirectiveDecl::~DirectiveDecl() { 75 delete stmt; 76 } 77 78 void DirectiveDecl::print( std::ostream &os, Indenter indent ) const { 79 stmt->print( os, indent ); 80 } 81 82 void DirectiveDecl::printShort( std::ostream &os, Indenter indent ) const { 83 stmt->print( os, indent ); 84 } 85 86 68 87 StaticAssertDecl::StaticAssertDecl( Expression * condition, ConstantExpr * message ) : Declaration( "", Type::StorageClasses(), LinkageSpec::C ), condition( condition ), message( message ) { 69 88 }
Note: See TracChangeset
for help on using the changeset viewer.