Changeset 54c9000 for src/SymTab
- Timestamp:
- Feb 13, 2018, 11:12:25 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:
- 490ff5c3
- Parents:
- 7a052e34
- git-author:
- Rob Schluntz <rschlunt@…> (02/12/18 16:21:06)
- git-committer:
- Rob Schluntz <rschlunt@…> (02/13/18 11:12:25)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Autogen.cc
r7a052e34 r54c9000 377 377 paramType->attributes.clear(); 378 378 // add a parameter corresponding to this field 379 memCtorType->parameters.push_back( new ObjectDecl( field->name, Type::StorageClasses(), LinkageSpec::Cforall, nullptr, paramType, nullptr ) ); 379 ObjectDecl * param = new ObjectDecl( field->name, Type::StorageClasses(), LinkageSpec::Cforall, nullptr, paramType, nullptr ); 380 cloneAll_if( field->attributes, param->attributes, [](Attribute * attr) { return attr->isValidOnFuncParam(); } ); 381 memCtorType->parameters.push_back( param ); 380 382 FunctionDecl * ctor = genFunc( "?{}", memCtorType->clone(), functionNesting ); 381 383 makeFieldCtorBody( aggregateDecl->members.begin(), aggregateDecl->members.end(), ctor );
Note: See TracChangeset
for help on using the changeset viewer.