Changeset e04b636 for src/SynTree
- Timestamp:
- Mar 21, 2017, 12:36:01 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 168c007, cb0e6de
- Parents:
- 31ce3d6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Type.h
r31ce3d6 re04b636 117 117 bool operator!=( Qualifiers other ) const { return (val & Mask) != (other.val & Mask); } 118 118 bool operator<=( Qualifiers other ) const { 119 return is_const <= other.is_const && is_volatile <= other.is_volatile && 120 is_mutex >= other.is_mutex && is_atomic == other.is_atomic; 119 return is_const <= other.is_const //Any non-const converts to const without cost 120 && is_volatile <= other.is_volatile //Any non-volatile converts to volatile without cost 121 && is_mutex >= other.is_mutex //Any mutex converts to non-mutex without cost 122 && is_atomic == other.is_atomic; //No conversion from atomic to non atomic is free 121 123 } 122 124 bool operator<( Qualifiers other ) const { return *this != other && *this <= other; }
Note:
See TracChangeset
for help on using the changeset viewer.