Changeset f841241 for src/Parser/TypeData.cc
- Timestamp:
- Mar 15, 2017, 11:23:48 AM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, 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:
- 9243cc91, ecc7752
- Parents:
- 3831b58 (diff), e61a35e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/Parser/TypeData.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypeData.cc
r3831b58 rf841241 10 10 // Created On : Sat May 16 15:12:51 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Mar 7 08:08:21201713 // Update Count : 5 3812 // Last Modified On : Tue Mar 14 15:01:44 2017 13 // Update Count : 548 14 14 // 15 15 … … 26 26 using namespace std; 27 27 28 TypeData::TypeData( Kind k ) : kind( k ), base( nullptr ), forall( nullptr ) {28 TypeData::TypeData( Kind k ) : kind( k ), base( nullptr ), forall( nullptr ) /*, PTR1( (void*)(0xdeadbeefdeadbeef)), PTR2( (void*)(0xdeadbeefdeadbeef) ) */ { 29 29 switch ( kind ) { 30 30 case Unknown: … … 50 50 function.newStyle = false; 51 51 break; 52 // Enum is an Aggregate, so both structures are initialized together. 53 case Enum: 54 // enumeration = new Enumeration_t; 55 enumeration.name = nullptr; 56 enumeration.constants = nullptr; 57 enumeration.body = false; 52 58 case Aggregate: 53 59 // aggregate = new Aggregate_t; … … 63 69 aggInst.params = nullptr; 64 70 aggInst.hoistType = false;; 65 break;66 case Enum:67 // enumeration = new Enumeration_t;68 enumeration.name = nullptr;69 enumeration.constants = nullptr;70 enumeration.body = false;71 71 break; 72 72 case Symbolic: … … 494 494 Type::Qualifiers buildQualifiers( const TypeData * td ) { 495 495 Type::Qualifiers q; 496 q.isConst = td->typeQualifiers [ DeclarationNode::Const ];497 q.isVolatile = td->typeQualifiers [ DeclarationNode::Volatile ];498 q.isRestrict = td->typeQualifiers [ DeclarationNode::Restrict ];499 q.isLvalue = td->typeQualifiers [ DeclarationNode::Lvalue ];500 q.isAtomic = td->typeQualifiers [ DeclarationNode::Atomic ];;496 q.isConst = td->typeQualifiers.is_const; 497 q.isVolatile = td->typeQualifiers.is_volatile; 498 q.isRestrict = td->typeQualifiers.is_restrict; 499 q.isLvalue = td->typeQualifiers.is_lvalue; 500 q.isAtomic = td->typeQualifiers.is_atomic; 501 501 return q; 502 502 } // buildQualifiers
Note:
See TracChangeset
for help on using the changeset viewer.