Changeset 7fdb94e for src/Parser/DeclarationNode.cc
- Timestamp:
- May 21, 2018, 10:48:05 PM (6 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, with_gc
- Children:
- b12c036
- Parents:
- 4358c1e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
r4358c1e r7fdb94e 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed May 16 09:37:17201813 // Update Count : 107 012 // Last Modified On : Mon May 21 20:36:45 2018 13 // Update Count : 1073 14 14 // 15 15 … … 179 179 newnode->type->function.body = body; 180 180 181 // ignore unnamed routine declarations: void p( int (*)(int) );182 if ( newnode->name ) {183 typedefTable.addToEnclosingScope( *newnode->name, TypedefTable::ID );184 } // if185 186 181 if ( ret ) { 187 182 newnode->type->base = ret->type; … … 285 280 newnode->name = name; 286 281 newnode->enumeratorValue.reset( constant ); 287 typedefTable.addToEnclosingScope( *newnode->name, TypedefTable::ID );288 282 return newnode; 289 283 } // DeclarationNode::newEnumConstant
Note: See TracChangeset
for help on using the changeset viewer.