Changes in src/Parser/DeclarationNode.cc [374cb117:9e7236f4]
- File:
-
- 1 edited
-
src/Parser/DeclarationNode.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
r374cb117 r9e7236f4 253 253 } // DeclarationNode::newAggregate 254 254 255 DeclarationNode * DeclarationNode::newEnum( const string * name, DeclarationNode * constants, bool body ) {255 DeclarationNode * DeclarationNode::newEnum( const string * name, DeclarationNode * constants, bool body, DeclarationNode * base) { 256 256 DeclarationNode * newnode = new DeclarationNode; 257 257 newnode->type = new TypeData( TypeData::Enum ); … … 260 260 newnode->type->enumeration.body = body; 261 261 newnode->type->enumeration.anon = name == nullptr; 262 if ( base && base->type) { 263 newnode->type->base = base->type; 264 } // if 265 266 // Check: if base has TypeData 262 267 return newnode; 263 268 } // DeclarationNode::newEnum … … 290 295 return newName( name ); // Not explicitly inited enum value; 291 296 } // if 292 } // DeclarationNode::newEnum Generic297 } // DeclarationNode::newEnumValueGeneric 293 298 294 299 DeclarationNode * DeclarationNode::newFromTypedef( const string * name ) {
Note:
See TracChangeset
for help on using the changeset viewer.