Changeset e4f13fe


Ignore:
Timestamp:
Feb 20, 2023, 9:12:20 PM (14 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master
Children:
44a0ca2
Parents:
0bcd707
Message:

formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Type.h

    r0bcd707 re4f13fe  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Feb 13 17:13:52 2023
    13 // Update Count     : 173
     12// Last Modified On : Sun Feb 19 22:37:10 2023
     13// Update Count     : 176
    1414//
    1515
     
    125125                bool operator!=( Qualifiers other ) const { return (val & Mask) != (other.val & Mask); }
    126126                bool operator<=( Qualifiers other ) const {
    127                         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
     127                        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
    131131                }
    132132                bool operator<( Qualifiers other ) const { return *this != other && *this <= other; }
     
    632632class TypeofType : public Type {
    633633  public:
    634         Expression * expr;    ///< expression to take the type of
    635         bool is_basetypeof;  ///< true iff is basetypeof type
     634        Expression * expr;              ///< expression to take the type of
     635        bool is_basetypeof;             ///< true iff is basetypeof type
    636636
    637637        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.