Ignore:
Timestamp:
Aug 17, 2017, 3:42:21 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
e50e9ff
Parents:
97e3296 (diff), 21f0aa8 (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/SymTab/Indexer.cc

    r97e3296 r6ac5223  
    353353        }
    354354
     355        void Indexer::visit( ForStmt *forStmt ) {
     356            // for statements introduce a level of scope
     357            enterScope();
     358            Visitor::visit( forStmt );
     359            leaveScope();
     360        }
     361
     362        void Indexer::visit( CatchStmt *catchStmt ) {
     363                // catch statements introduce a level of scope (for the caught exception)
     364                enterScope();
     365                Visitor::visit( catchStmt );
     366                leaveScope();
     367        }
    355368
    356369        void Indexer::visit( ApplicationExpr *applicationExpr ) {
     
    556569                leaveScope();
    557570        }
    558 
    559         void Indexer::visit( ForStmt *forStmt ) {
    560             // for statements introduce a level of scope
    561             enterScope();
    562             Visitor::visit( forStmt );
    563             leaveScope();
    564         }
    565 
    566 
    567571
    568572        void Indexer::lookupId( const std::string &id, std::list< DeclarationWithType* > &out ) const {
Note: See TracChangeset for help on using the changeset viewer.