Changeset e4f13fe
- Timestamp:
- Feb 20, 2023, 9:12:20 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 44a0ca2
- Parents:
- 0bcd707
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/SynTree/Type.h ¶
r0bcd707 re4f13fe 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Feb 13 17:13:52202313 // Update Count : 17 312 // Last Modified On : Sun Feb 19 22:37:10 2023 13 // Update Count : 176 14 14 // 15 15 … … 125 125 bool operator!=( Qualifiers other ) const { return (val & Mask) != (other.val & Mask); } 126 126 bool operator<=( Qualifiers other ) const { 127 return is_const <= other.is_const // Any non-const converts to const without cost128 && is_volatile <= other.is_volatile //Any non-volatile converts to volatile without cost129 && is_mutex >= other.is_mutex //Any mutex converts to non-mutex without cost130 && is_atomic == other.is_atomic; //No conversion from atomic to non atomic is free127 return is_const <= other.is_const // Any non-const converts to const without cost 128 && is_volatile <= other.is_volatile // Any non-volatile converts to volatile without cost 129 && is_mutex >= other.is_mutex // Any mutex converts to non-mutex without cost 130 && is_atomic == other.is_atomic; // No conversion from atomic to non atomic is free 131 131 } 132 132 bool operator<( Qualifiers other ) const { return *this != other && *this <= other; } … … 632 632 class TypeofType : public Type { 633 633 public: 634 Expression * expr; 635 bool is_basetypeof; 634 Expression * expr; ///< expression to take the type of 635 bool is_basetypeof; ///< true iff is basetypeof type 636 636 637 637 TypeofType( const Type::Qualifiers & tq, Expression * expr, const std::list< Attribute * > & attributes = std::list< Attribute * >() );
Note: See TracChangeset
for help on using the changeset viewer.