Changeset 5d2db68 for src


Ignore:
Timestamp:
Oct 27, 2020, 3:29:39 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:
53d55b6
Parents:
cb25fc9
Message:

Fixed documentation and naming

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.hpp

    rcb25fc9 r5d2db68  
    6565//                           corresponding postvisit/postmutate teminates.
    6666// | WithVisitorRef        - provides an pointer to the templated visitor wrapper
     67// | WithIsInFuncion       - provides a way to access the inFunction
    6768// | WithSymbolTable       - provides symbol table functionality
    6869// | WithForallSubstitutor - maintains links between TypeInstType and TypeDecl under mutation
     
    388389/// Used to track whether or not we are in a function.
    389390class WithIsInFuncion {
    390         const bool * const __in_funct_ptr = nullptr;
     391        const bool * const infunc_ptr = nullptr;
    391392
    392393        template<typename core_t>
     
    394395public:
    395396        bool isInFunction() {
    396                 assert( __in_funct_ptr );
    397                 return *__in_funct_ptr;
     397                assert( infunc_ptr );
     398                return *infunc_ptr;
    398399        }
    399400};
Note: See TracChangeset for help on using the changeset viewer.