Changeset 75626a1 for src/SynTree
- Timestamp:
- Sep 27, 2017, 4:24:16 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 8404321
- Parents:
- 7fc7cdb
- git-author:
- Rob Schluntz <rschlunt@…> (09/27/17 15:52:12)
- git-committer:
- Rob Schluntz <rschlunt@…> (09/27/17 16:24:16)
- Location:
- src/SynTree
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r7fc7cdb r75626a1 164 164 CompoundStmt *get_statements() const { return statements; } 165 165 void set_statements( CompoundStmt *newValue ) { statements = newValue; } 166 167 static FunctionDecl * newFunction( const std::string & name, FunctionType * type, CompoundStmt * statements ); 166 168 167 169 virtual FunctionDecl *clone() const override { return new FunctionDecl( *this ); } -
src/SynTree/FunctionDecl.cc
r7fc7cdb r75626a1 44 44 delete type; 45 45 delete statements; 46 } 47 48 FunctionDecl * FunctionDecl::newFunction( const std::string & name, FunctionType * type, CompoundStmt * statements ) { 49 return new FunctionDecl( name, Type::StorageClasses(), LinkageSpec::C, type, statements ); 46 50 } 47 51
Note: See TracChangeset
for help on using the changeset viewer.