Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.h

    r16ba4a6f r335d81f  
    3838        /// returns the first parameter of a constructor/destructor/assignment function
    3939        ObjectDecl * getParamThis( FunctionType * ftype );
    40         const ast::ObjectDecl * getParamThis(const ast::FunctionDecl * func);
    4140
    4241        /// generate a bitwise assignment operation.
    4342        ApplicationExpr * createBitwiseAssignment( Expression * dst, Expression * src );
    44 
    45         ast::Expr * createBitwiseAssignment( const ast::Expr * dst, const ast::Expr * src);
    4643
    4744        /// transform Initializer into an argument list that can be passed to a call expression
     
    5148        /// True if the resolver should try to construct dwt
    5249        bool tryConstruct( DeclarationWithType * dwt );
    53         bool tryConstruct( const ast::DeclWithType * dwt );
    5450
    5551        /// True if the type can have a user-defined constructor
    5652        bool isConstructable( Type * t );
    57         bool isConstructable( const ast::Type * t );
    5853
    5954        /// True if the Initializer contains designations
    6055        bool isDesignated( Initializer * init );
    61         bool isDesignated( const ast::Init * init );
    6256
    6357        /// True if the ObjectDecl's Initializer nesting level is not deeper than the depth of its
    6458        /// type, where the depth of its type is the number of nested ArrayTypes + 1
    6559        bool checkInitDepth( ObjectDecl * objDecl );
    66         bool checkInitDepth( const ast::ObjectDecl * objDecl );
    6760
    6861        /// returns the declaration of the function called by the expr (must be ApplicationExpr or UntypedExpr)
     
    8679        /// get all Ctor/Dtor call expressions from a Statement
    8780        void collectCtorDtorCalls( Statement * stmt, std::list< Expression * > & matches );
    88         std::vector< const ast::Expr * > collectCtorDtorCalls( const ast::Stmt * stmt );
     81        std::vector< ast::ptr< ast::Expr > > collectCtorDtorCalls( const ast::Stmt * stmt );
    8982
    9083        /// get the Ctor/Dtor call expression from a Statement that looks like a generated ctor/dtor call
     
    109102        bool isConstExpr( Expression * expr );
    110103        bool isConstExpr( Initializer * init );
    111 
    112         bool isConstExpr( const ast::Expr * expr );
    113         bool isConstExpr( const ast::Init * init );
    114 
    115         /// Modifies objDecl to have:
    116         ///    __attribute__((section (".data#")))
    117         /// which makes gcc put the declared variable in the data section,
    118         /// which is helpful for global constants on newer gcc versions,
    119         /// so that CFA's generated initialization won't segfault when writing it via a const cast.
    120         /// The trailing # is an injected assembly comment, to suppress the "a" in
    121         ///    .section .data,"a"
    122         ///    .section .data#,"a"
    123         /// to avoid assembler warning "ignoring changed section attributes for .data"
    124         void addDataSectonAttribute( ObjectDecl * objDecl );
    125 
    126         void addDataSectionAttribute( ast::ObjectDecl * objDecl );
    127104
    128105        class InitExpander_old {
Note: See TracChangeset for help on using the changeset viewer.