Changes in src/Validate/Autogen.cpp [e8616b6:d958834b]
- File:
-
- 1 edited
-
src/Validate/Autogen.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/Autogen.cpp
re8616b6 rd958834b 235 235 // Must visit children (enum constants) to add them to the symbol table. 236 236 if ( !enumDecl->body ) return; 237 238 // if ( auto enumBaseType = enumDecl->base ) { 239 // if ( auto enumBaseTypeAsStructInst = dynamic_cast<const ast::StructInstType *>(enumBaseType.get()) ) { 240 // const ast::StructDecl * structDecl = enumBaseTypeAsStructInst->base.get(); 241 // this->previsit( structDecl ); 242 // } 243 // } 237 244 238 245 ast::EnumInstType enumInst( enumDecl->name ); … … 370 377 ast::ObjectDecl * FuncGenerator::dstParam() const { 371 378 return new ast::ObjectDecl( getLocation(), "_dst", 372 new ast::ReferenceType( ast::deepCopy( type ) ) ); 379 new ast::ReferenceType( ast::deepCopy( type ) ), 380 nullptr, {}, ast::Linkage::Cforall ); 373 381 } 374 382 375 383 ast::ObjectDecl * FuncGenerator::srcParam() const { 376 384 return new ast::ObjectDecl( getLocation(), "_src", 377 ast::deepCopy( type ) ); 385 ast::deepCopy( type ), 386 nullptr, {}, ast::Linkage::Cforall ); 378 387 } 379 388 … … 427 436 ast::ObjectDecl * param = new ast::ObjectDecl( 428 437 getLocation(), member->name, paramType ); 438 param->linkage = ast::Linkage::Cforall; 429 439 for ( auto & attr : member->attributes ) { 430 440 if ( attr->isValidOnFuncParam() ) {
Note:
See TracChangeset
for help on using the changeset viewer.