Changeset 8492b85


Ignore:
Timestamp:
Aug 12, 2024, 10:35:01 AM (5 weeks ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
97f8f0f, a51dc0d
Parents:
206ecae (diff), 0e6aba06 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Expr.hpp

    r206ecae r8492b85  
    1111// Last Modified By : Peter A. Buhr
    1212// Created On       : Fri May 10 10:30:00 2019
    13 // Update Count     : 7
     13// Update Count     : 8
    1414//
    1515
     
    8686
    8787                /// initializes from other InferUnion
    88                 void init_from( const InferUnion& o ) {
     88                void init_from( const InferUnion & o ) {
    8989                        if (o.data.resnSlots) {
    9090                                data.resnSlots = new ResnSlots(*o.data.resnSlots);
     
    9696
    9797                /// initializes from other InferUnion (move semantics)
    98                 void init_from( InferUnion&& o ) {
     98                void init_from( InferUnion && o ) {
    9999                        data.resnSlots = o.data.resnSlots;
    100100                        data.inferParams = o.data.inferParams;
     
    104104
    105105                InferUnion() : mode(Empty), data() {}
    106                 InferUnion( const InferUnion& o ) : mode( o.mode ), data() { init_from( o ); }
    107                 InferUnion( InferUnion&& o ) : mode( o.mode ), data() { init_from( std::move(o) ); }
    108                 InferUnion& operator= ( const InferUnion& ) = delete;
    109                 InferUnion& operator= ( InferUnion&& ) = delete;
     106                InferUnion( const InferUnion & o ) : mode( o.mode ), data() { init_from( o ); }
     107                InferUnion( InferUnion && o ) : mode( o.mode ), data() { init_from( std::move(o) ); }
     108                InferUnion & operator= ( const InferUnion & ) = delete;
     109                InferUnion & operator= ( InferUnion && ) = delete;
    110110
    111111                bool hasSlots() const { return data.resnSlots; }
    112112                bool hasParams() const { return data.inferParams; }
    113113
    114                 ResnSlots& resnSlots() {
     114                ResnSlots & resnSlots() {
    115115                        if (!data.resnSlots) {
    116116                                data.resnSlots = new ResnSlots();
     
    119119                }
    120120
    121                 const ResnSlots& resnSlots() const {
     121                const ResnSlots & resnSlots() const {
    122122                        if (data.resnSlots) {
    123123                                return *data.resnSlots;
     
    127127                }
    128128
    129                 InferredParams& inferParams() {
     129                InferredParams & inferParams() {
    130130                        if (!data.inferParams) {
    131131                                data.inferParams = new InferredParams();
     
    134134                }
    135135
    136                 const InferredParams& inferParams() const {
     136                const InferredParams & inferParams() const {
    137137                        if (data.inferParams) {
    138138                                return *data.inferParams;
     
    669669        ptr<ApplicationExpr> callExpr;
    670670
    671         ImplicitCopyCtorExpr( const CodeLocation& loc, const ApplicationExpr * call )
     671        ImplicitCopyCtorExpr( const CodeLocation & loc, const ApplicationExpr * call )
    672672        : Expr( loc, call->result ), callExpr(call) { assert( call ); assert(call->result); }
    673673
Note: See TracChangeset for help on using the changeset viewer.