Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.h

    rbe9288a r1a5ad8c  
    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 
    3226        FunctionDecl * isAssignment( Declaration * decl );
    3327        FunctionDecl * isDestructor( Declaration * decl );
     
    3630        FunctionDecl * isCopyFunction( Declaration * decl, const std::string & fname );
    3731
     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 objDecl
    42         bool tryConstruct( ObjectDecl * objDecl );
     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 );
    4346
    4447        /// True if the Initializer contains designations
     
    102105                void addArrayIndex( Expression * index, Expression * dimension );
    103106                void clearArrayIndices();
     107                bool addReference();
    104108
    105109                class ExpanderImpl;
Note: See TracChangeset for help on using the changeset viewer.