Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.h

    r1a5ad8c rbe9288a  
    2424// helper functions for initialization
    2525namespace InitTweak {
     26        bool isConstructor( const std::string & );
     27        bool isDestructor( const std::string & );
     28        bool isAssignment( const std::string & );
     29        bool isCtorDtor( const std::string & );
     30        bool isCtorDtorAssign( const std::string & );
     31
    2632        FunctionDecl * isAssignment( Declaration * decl );
    2733        FunctionDecl * isDestructor( Declaration * decl );
     
    3036        FunctionDecl * isCopyFunction( Declaration * decl, const std::string & fname );
    3137
    32         /// returns the base type of the first parameter to a constructor/destructor/assignment function
    33         Type * getTypeofThis( FunctionType * ftype );
    34 
    35         /// returns the first parameter of a constructor/destructor/assignment function
    36         ObjectDecl * getParamThis( FunctionType * ftype );
    37 
    3838        /// transform Initializer into an argument list that can be passed to a call expression
    3939        std::list< Expression * > makeInitList( Initializer * init );
    4040
    41         /// True if the resolver should try to construct dwt
    42         bool tryConstruct( DeclarationWithType * dwt );
    43 
    44         /// True if the type can have a user-defined constructor
    45         bool isConstructable( Type * t );
     41        /// True if the resolver should try to construct objDecl
     42        bool tryConstruct( ObjectDecl * objDecl );
    4643
    4744        /// True if the Initializer contains designations
     
    105102                void addArrayIndex( Expression * index, Expression * dimension );
    106103                void clearArrayIndices();
    107                 bool addReference();
    108104
    109105                class ExpanderImpl;
Note: See TracChangeset for help on using the changeset viewer.