Ignore:
Timestamp:
May 14, 2015, 1:44:55 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
4bf5298
Parents:
d4778a6
Message:

add inline and attribute qualifiers, cfa.y comment formatting, fix error message in isIntegralType

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/SynTree/Type.h

    rd4778a6 rc11e31c  
    1010  public:
    1111    struct Qualifiers { 
    12       Qualifiers(): isConst( false ), isVolatile( false ), isRestrict( false ), isLvalue( false ), isAtomic( false ) {}
    13       Qualifiers( bool isConst, bool isVolatile, bool isRestrict, bool isLvalue, bool isAtomic ): isConst( isConst ), isVolatile( isVolatile ), isRestrict( isRestrict ), isLvalue( isLvalue ), isAtomic( isAtomic ) {}
     12      Qualifiers(): isConst( false ), isVolatile( false ), isRestrict( false ), isLvalue( false ), isAtomic( false ), isAttribute( false ) {}
     13      Qualifiers( bool isConst, bool isVolatile, bool isRestrict, bool isLvalue, bool isAtomic, bool isAttribute): isConst( isConst ), isVolatile( isVolatile ), isRestrict( isRestrict ), isLvalue( isLvalue ), isAtomic( isAtomic ), isAttribute( isAttribute ) {}
    1414       
    1515        Qualifiers &operator+=( const Qualifiers &other );
     
    2828        bool isLvalue;
    2929        bool isAtomic;
     30        bool isAttribute;
    3031    }; 
    3132
     
    4041    bool get_isLvalue() { return tq.isLvalue; }
    4142    bool get_isAtomic() { return tq.isAtomic; }
     43    bool get_isAttribute() { return tq.isAttribute; }
    4244    void set_isConst( bool newValue ) { tq.isConst = newValue; }
    4345    void set_iisVolatile( bool newValue ) { tq.isVolatile = newValue; }
     
    4547    void set_isLvalue( bool newValue ) { tq.isLvalue = newValue; }
    4648    void set_isAtomic( bool newValue ) { tq.isAtomic = newValue; }
     49    void set_isAttribute( bool newValue ) { tq.isAttribute = newValue; }
    4750    std::list<TypeDecl*>& get_forall() { return forall; }
    4851
Note: See TracChangeset for help on using the changeset viewer.