Changeset c11e31c for translator/SynTree/Type.h
- Timestamp:
- May 14, 2015, 1:44:55 PM (9 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/SynTree/Type.h
rd4778a6 rc11e31c 10 10 public: 11 11 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 ) {} 14 14 15 15 Qualifiers &operator+=( const Qualifiers &other ); … … 28 28 bool isLvalue; 29 29 bool isAtomic; 30 bool isAttribute; 30 31 }; 31 32 … … 40 41 bool get_isLvalue() { return tq.isLvalue; } 41 42 bool get_isAtomic() { return tq.isAtomic; } 43 bool get_isAttribute() { return tq.isAttribute; } 42 44 void set_isConst( bool newValue ) { tq.isConst = newValue; } 43 45 void set_iisVolatile( bool newValue ) { tq.isVolatile = newValue; } … … 45 47 void set_isLvalue( bool newValue ) { tq.isLvalue = newValue; } 46 48 void set_isAtomic( bool newValue ) { tq.isAtomic = newValue; } 49 void set_isAttribute( bool newValue ) { tq.isAttribute = newValue; } 47 50 std::list<TypeDecl*>& get_forall() { return forall; } 48 51
Note: See TracChangeset
for help on using the changeset viewer.