Changeset b81adcc4


Ignore:
Timestamp:
Jul 21, 2016, 2:06:15 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
6cf27a07
Parents:
40e636a
Message:

fix indentation in FixInit?.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.h

    r40e636a rb81adcc4  
    2626// helper functions for initialization
    2727namespace InitTweak {
    28   /// transform Initializer into an argument list that can be passed to a call expression
    29   std::list< Expression * > makeInitList( Initializer * init );
     28        /// transform Initializer into an argument list that can be passed to a call expression
     29        std::list< Expression * > makeInitList( Initializer * init );
    3030
    31   /// True if the resolver should try to construct objDecl
    32   bool tryConstruct( ObjectDecl * objDecl );
     31        /// True if the resolver should try to construct objDecl
     32        bool tryConstruct( ObjectDecl * objDecl );
    3333
    34   /// True if the Initializer contains designations
    35   bool isDesignated( Initializer * init );
     34        /// True if the Initializer contains designations
     35        bool isDesignated( Initializer * init );
    3636
    37   /// True if stmt is a call statement where the function called is intrinsic and takes one parameter.
    38   /// Intended to be used for default ctor/dtor calls, but might have use elsewhere.
    39   /// Currently has assertions that make it less than fully general.
    40   bool isInstrinsicSingleArgCallStmt( Statement * expr );
     37        /// True if stmt is a call statement where the function called is intrinsic and takes one parameter.
     38        /// Intended to be used for default ctor/dtor calls, but might have use elsewhere.
     39        /// Currently has assertions that make it less than fully general.
     40        bool isInstrinsicSingleArgCallStmt( Statement * expr );
    4141
    42   /// get the Ctor/Dtor call expression from a Statement that looks like a generated ctor/dtor call
    43   Expression * getCtorDtorCall( Statement * stmt );
     42        /// get the Ctor/Dtor call expression from a Statement that looks like a generated ctor/dtor call
     43        Expression * getCtorDtorCall( Statement * stmt );
    4444
    45   /// returns the name of the function being called
    46   std::string getFunctionName( Expression * expr );
     45        /// returns the name of the function being called
     46        std::string getFunctionName( Expression * expr );
    4747
    48   /// returns the argument to a call expression in position N indexed from 0
    49   Expression *& getCallArg( Expression * callExpr, unsigned int pos );
     48        /// returns the argument to a call expression in position N indexed from 0
     49        Expression *& getCallArg( Expression * callExpr, unsigned int pos );
    5050
    51   /// returns the base type of a PointerType or ArrayType, else returns NULL
    52   Type * getPointerBase( Type * );
     51        /// returns the base type of a PointerType or ArrayType, else returns NULL
     52        Type * getPointerBase( Type * );
    5353
    54   /// returns the argument if it is a PointerType or ArrayType, else returns NULL
    55   Type * isPointerType( Type * );
     54        /// returns the argument if it is a PointerType or ArrayType, else returns NULL
     55        Type * isPointerType( Type * );
    5656
    57   /// returns true if expr is trivially a compile-time constant
    58   bool isConstExpr( Expression * expr );
    59   bool isConstExpr( Initializer * init );
     57        /// returns true if expr is trivially a compile-time constant
     58        bool isConstExpr( Expression * expr );
     59        bool isConstExpr( Initializer * init );
    6060} // namespace
    6161
Note: See TracChangeset for help on using the changeset viewer.