Changes in src/Parser/DeclarationNode.cc [b0d9ff7:1e30df7]
- File:
-
- 1 edited
-
src/Parser/DeclarationNode.cc (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
rb0d9ff7 r1e30df7 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jul 14 17:36:57 202113 // Update Count : 11 5412 // Last Modified On : Mon Aug 8 17:07:00 2022 13 // Update Count : 1185 14 14 // 15 15 … … 128 128 if ( name ) { 129 129 os << *name << ": "; 130 } else {131 os << "unnamed: ";132 130 } // if 133 131 … … 154 152 initializer->printOneLine( os ); 155 153 os << " maybe constructed? " << initializer->get_maybeConstructed(); 156 157 } // if 154 } // if 155 156 for ( Attribute * attr: reverseIterate( attributes ) ) { 157 os << string( indent + 2, ' ' ) << "attr " << attr->name.c_str(); 158 } // for 158 159 159 160 os << endl; … … 243 244 newnode->type = new TypeData( TypeData::Aggregate ); 244 245 newnode->type->aggregate.kind = kind; 245 newnode->type->aggregate.name = name == nullptr ? new string( DeclarationNode::anonymous.newName() ) : name;246 newnode->type->aggregate.name = name == nullptr ? new string( DeclarationNode::anonymous.newName() ) : name; 246 247 newnode->type->aggregate.actuals = actuals; 247 248 newnode->type->aggregate.fields = fields; … … 262 263 newnode->type->enumeration.typed = typed; 263 264 if ( base && base->type) { 264 newnode->type->base = base->type; 265 newnode->type->base = base->type; 265 266 } // if 266 267 … … 296 297 } // if 297 298 } // DeclarationNode::newEnumValueGeneric 299 300 DeclarationNode * DeclarationNode::newEnumInLine( const string name ) { 301 DeclarationNode * newnode = newName( new std::string(name) ); 302 newnode->enumInLine = true; 303 return newnode; 304 } 298 305 299 306 DeclarationNode * DeclarationNode::newFromTypedef( const string * name ) { … … 504 511 } // for 505 512 // src is the new item being added and has a single bit 506 } else if ( ! src->storageClasses.is_threadlocal ) { // conflict ?513 } else if ( ! src->storageClasses.is_threadlocal_any() ) { // conflict ? 507 514 appendError( error, string( "conflicting " ) + Type::StorageClassesNames[storageClasses.ffs()] + 508 515 " & " + Type::StorageClassesNames[src->storageClasses.ffs()] ); … … 518 525 storageClasses |= q->storageClasses; 519 526 520 for ( Attribute * attr: reverseIterate( q->attributes ) ) {527 for ( Attribute * attr: reverseIterate( q->attributes ) ) { 521 528 attributes.push_front( attr->clone() ); 522 529 } // for … … 683 690 } // if 684 691 delete o; 692 685 693 return this; 686 694 }
Note:
See TracChangeset
for help on using the changeset viewer.