Changeset 8d25360 for src/Parser


Ignore:
Timestamp:
Feb 13, 2019, 12:24:12 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
no_list
Children:
80eefcb
Parents:
bbbc067
Message:

Fixed problems with changing some lists to vectors

Location:
src/Parser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/TypeData.cc

    rbbbc067 r8d25360  
    887887
    888888
    889 NamedTypeDecl * buildSymbolic( const TypeData * td, std::vector< Attribute * > attributes, const string & name, Type::StorageClasses scs, LinkageSpec::Spec linkage ) {
     889NamedTypeDecl * buildSymbolic( const TypeData * td, const std::vector< Attribute * > & attributes, const string & name, Type::StorageClasses scs, LinkageSpec::Spec linkage ) {
    890890        assert( td->kind == TypeData::Symbolic );
    891891        NamedTypeDecl * ret;
     
    947947
    948948
    949 Declaration * buildDecl( const TypeData * td, const string &name, Type::StorageClasses scs, Expression * bitfieldWidth, Type::FuncSpecifiers funcSpec, LinkageSpec::Spec linkage, Expression *asmName, Initializer * init, std::vector< Attribute * > attributes ) {
     949Declaration * buildDecl( const TypeData * td, const string &name, Type::StorageClasses scs, Expression * bitfieldWidth, Type::FuncSpecifiers funcSpec, LinkageSpec::Spec linkage, Expression *asmName, Initializer * init, const std::vector< Attribute * > & attributes ) {
    950950        if ( td->kind == TypeData::Function ) {
    951951                if ( td->function.idList ) {                                    // KR function ?
  • src/Parser/TypeData.h

    rbbbc067 r8d25360  
    130130TypeofType * buildTypeof( const TypeData * );
    131131Declaration * buildDecl( const TypeData *, const std::string &, Type::StorageClasses, Expression *, Type::FuncSpecifiers funcSpec, LinkageSpec::Spec, Expression * asmName,
    132                                                  Initializer * init = nullptr, std::vector< Attribute * > attributes = std::vector< Attribute * >() );
     132                                                 Initializer * init = nullptr, const std::vector< Attribute * > & attributes = std::vector< Attribute * >() );
    133133FunctionType * buildFunction( const TypeData * );
    134134void buildKRFunction( const TypeData::Function_t & function );
Note: See TracChangeset for help on using the changeset viewer.