Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Validate.cc

    r1f370451 rb95fe40  
    201201                Declaration * postmutate( TraitDecl * contextDecl );
    202202
    203                 void premutate( FunctionType * ftype );
    204 
    205203          private:
    206204                template<typename AggDecl>
     
    216214                TypeDeclMap typedeclNames;
    217215                int scopeLevel;
    218                 bool inFunctionType = false;
    219216        };
    220217
     
    728725                        Type *ret = def->second.first->base->clone();
    729726                        ret->get_qualifiers() |= typeInst->get_qualifiers();
    730                         // attributes are not carried over from typedef to function parameters/return values
    731                         if ( ! inFunctionType ) {
    732                                 ret->attributes.splice( ret->attributes.end(), typeInst->attributes );
    733                         } else {
    734                                 deleteAll( ret->attributes );
    735                                 ret->attributes.clear();
    736                         }
    737727                        // place instance parameters on the typedef'd type
    738728                        if ( ! typeInst->parameters.empty() ) {
     
    911901        Declaration *EliminateTypedef::postmutate( TraitDecl * traitDecl ) {
    912902                return handleAggregate( traitDecl );
    913         }
    914 
    915         void EliminateTypedef::premutate( FunctionType * ) {
    916                 GuardValue( inFunctionType );
    917                 inFunctionType = true;
    918903        }
    919904
Note: See TracChangeset for help on using the changeset viewer.