Changeset c1c1112 for src/Parser/TypeData.cc
- Timestamp:
- Aug 25, 2016, 9:14:06 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, 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, resolv-new, with_gc
- Children:
- 4e2b9710
- Parents:
- 2acf5fc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypeData.cc
r2acf5fc rc1c1112 10 10 // Created On : Sat May 16 15:12:51 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Aug 18 23:48:44201613 // Update Count : 6 412 // Last Modified On : Wed Aug 24 13:46:55 2016 13 // Update Count : 69 14 14 // 15 15 … … 244 244 using std::string; 245 245 246 printEnums( qualifiers.begin(), qualifiers.end(), DeclarationNode::qualifierName, os ); 246 for ( int i = 0; i < DeclarationNode::NoOfQualifier; i += 1 ) { 247 if ( qualifiers[i] ) os << DeclarationNode::qualifierName[ i ] << ' '; 248 } // for 247 249 248 250 if ( forall ) { … … 425 427 if ( ! toplevel && aggregate->fields ) { 426 428 ret = clone(); 427 ret->qualifiers.clear();429 // ret->qualifiers.reset(); 428 430 } // if 429 431 break; … … 431 433 if ( ! toplevel && enumeration->constants ) { 432 434 ret = clone(); 433 ret->qualifiers.clear();435 // ret->qualifiers.reset(); 434 436 } // if 435 437 break; … … 554 556 Type::Qualifiers TypeData::buildQualifiers() const { 555 557 Type::Qualifiers q; 556 for ( std::list< DeclarationNode::Qualifier >::const_iterator i = qualifiers.begin(); i != qualifiers.end(); ++i ) { 557 switch ( *i ) { 558 case DeclarationNode::Const: 559 q.isConst = true; 560 break; 561 case DeclarationNode::Volatile: 562 q.isVolatile = true; 563 break; 564 case DeclarationNode::Restrict: 565 q.isRestrict = true; 566 break; 567 case DeclarationNode::Lvalue: 568 q.isLvalue = true; 569 break; 570 case DeclarationNode::Atomic: 571 q.isAtomic = true; 572 break; 573 } // switch 574 } // for 558 q.isConst = qualifiers[ DeclarationNode::Const ]; 559 q.isVolatile = qualifiers[ DeclarationNode::Volatile ]; 560 q.isRestrict = qualifiers[ DeclarationNode::Restrict ]; 561 q.isLvalue = qualifiers[ DeclarationNode::Lvalue ]; 562 q.isAtomic = qualifiers[ DeclarationNode::Atomic ];; 575 563 return q; 576 564 }
Note: See TracChangeset
for help on using the changeset viewer.