Changes in src/Parser/DeclarationNode.cc [9e7236f4:374cb117]
- File:
-
- 1 edited
-
src/Parser/DeclarationNode.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
r9e7236f4 r374cb117 253 253 } // DeclarationNode::newAggregate 254 254 255 DeclarationNode * DeclarationNode::newEnum( const string * name, DeclarationNode * constants, bool body , DeclarationNode * base) {255 DeclarationNode * DeclarationNode::newEnum( const string * name, DeclarationNode * constants, bool body) { 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 } // if265 266 // Check: if base has TypeData267 262 return newnode; 268 263 } // DeclarationNode::newEnum … … 295 290 return newName( name ); // Not explicitly inited enum value; 296 291 } // if 297 } // DeclarationNode::newEnum ValueGeneric292 } // DeclarationNode::newEnumGeneric 298 293 299 294 DeclarationNode * DeclarationNode::newFromTypedef( const string * name ) {
Note:
See TracChangeset
for help on using the changeset viewer.