Changeset 53d55b6 for src/Common


Ignore:
Timestamp:
Oct 27, 2020, 4:14:48 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
1be1e5a, b35ab2d
Parents:
5d2db68
Message:

Changed approach for isInFunction and implemented for old ast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/PassVisitor.h

    r5d2db68 r53d55b6  
    354354        virtual TypeSubstitution * mutate( TypeSubstitution * sub ) final;
    355355
     356        bool isInFunction() const {
     357                return inFunction;
     358        }
     359
    356360private:
    357361        bool inFunction = false;
     
    526530public:
    527531        PassVisitor<pass_type> * const visitor = nullptr;
     532
     533        bool isInFunction() const {
     534                return visitor->inFunction;
     535        }
    528536};
    529537
Note: See TracChangeset for help on using the changeset viewer.