- Timestamp:
- Dec 14, 2017, 10:25:27 AM (7 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:
- bdad6eb7
- Parents:
- 014450e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
r014450e r71d0eab 343 343 DeclarationNode * newnode = new DeclarationNode; 344 344 newnode->type = new TypeData( kind == OperKinds::PointTo ? TypeData::Pointer : TypeData::Reference ); 345 if ( kind == OperKinds::And ) { 346 // T && is parsed as 'And' operator rather than two references => add a second reference type 347 TypeData * td = new TypeData( TypeData::Reference ); 348 td->base = newnode->type; 349 newnode->type = td; 350 } 345 351 if ( qualifiers ) { 346 352 return newnode->addQualifiers( qualifiers );
Note: See TracChangeset
for help on using the changeset viewer.