Changeset 843054c2 for src/SynTree/FunctionDecl.cc
- Timestamp:
- May 21, 2015, 9:44:51 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 76f2e97f
- Parents:
- a08ba92
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/FunctionDecl.cc
ra08ba92 r843054c2 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 18 08:48:46 201513 // Update Count : 1 12 // Last Modified On : Thu May 21 21:31:16 2015 13 // Update Count : 11 14 14 // 15 15 … … 22 22 23 23 FunctionDecl::FunctionDecl( const std::string &name, StorageClass sc, LinkageSpec::Type linkage, FunctionType *type, CompoundStmt *statements, bool isInline ) 24 : Parent( name, sc, linkage ), type( type ), statements( statements ), isInline( isInline ) {24 : Parent( name, sc, linkage ), type( type ), statements( statements ), isInline( isInline ) { 25 25 // this is a brazen hack to force the function "main" to have C linkage 26 26 if ( name == "main" ) { … … 30 30 31 31 FunctionDecl::FunctionDecl( const FunctionDecl &other ) 32 : Parent( other ), type( maybeClone( other.type ) ), statements( maybeClone( other.statements ) ), isInline( other.isInline ) {32 : Parent( other ), type( maybeClone( other.type ) ), statements( maybeClone( other.statements ) ), isInline( other.isInline ) { 33 33 } 34 34 … … 68 68 os << "untyped entity "; 69 69 } // if 70 70 71 if ( ! oldIdents.empty() ) { 71 72 os << string( indent+2, ' ' ) << "with parameter names" << endl; … … 74 75 } // for 75 76 } // if 77 76 78 if ( ! oldDecls.empty() ) { 77 79 os << string( indent+2, ' ' ) << "with parameter declarations" << endl;
Note: See TracChangeset
for help on using the changeset viewer.