Changeset 1db21619 for src/Parser/TypeData.cc
- Timestamp:
- Jul 16, 2015, 5:28:24 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:
- 994ec2c
- Parents:
- 724c2b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypeData.cc
r724c2b6 r1db21619 10 10 // Created On : Sat May 16 15:12:51 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jun 26 07:30:06201513 // Update Count : 2612 // Last Modified On : Tue Jul 14 14:57:23 2015 13 // Update Count : 32 14 14 // 15 15 … … 397 397 } // if 398 398 break; 399 default: 400 os << "internal error: TypeData::print " << kind << endl; 401 assert( false ); 399 402 } // switch 400 403 } … … 474 477 return buildVariable(); 475 478 } else { 476 if ( isInline || isNoreturn ) { 477 throw SemanticError( "invalid inline or _Noreturn specification in declaration of ", this ); 478 } else { 479 return new ObjectDecl( name, sc, linkage, bitfieldWidth, build(), init ); 480 } // if 479 return new ObjectDecl( name, sc, linkage, bitfieldWidth, build(), init, isInline, isNoreturn ); 481 480 } // if 482 481 return 0; … … 536 535 case DeclarationNode::Atomic: 537 536 q.isAtomic = true; 538 break;539 case DeclarationNode::Attribute:540 q.isAttribute = true;541 537 break; 542 538 } // switch
Note: See TracChangeset
for help on using the changeset viewer.