Changes in src/SynTree/Declaration.cc [2d019af:312029a]
- File:
-
- 1 edited
-
src/SynTree/Declaration.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.cc
r2d019af r312029a 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 12 18:35:39 202113 // Update Count : 3 712 // Last Modified On : Wed Dec 11 16:39:56 2019 13 // Update Count : 36 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 87 68 StaticAssertDecl::StaticAssertDecl( Expression * condition, ConstantExpr * message ) : Declaration( "", Type::StorageClasses(), LinkageSpec::C ), condition( condition ), message( message ) { 88 69 }
Note:
See TracChangeset
for help on using the changeset viewer.