Ignore:
Timestamp:
Aug 15, 2017, 1:38:04 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, 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, resolv-new, with_gc
Children:
bd098ea
Parents:
ea6332d
Message:

Fixed errors made by the clean-up tool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/TypedefTable.h

    rea6332d rbe9288a  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // TypedefTable.h -- 
     7// TypedefTable.h --
    88//
    99// Author           : Rodolfo G. Esteves
     
    2121#include <string>     // for string
    2222
     23#include "ParserTypes.h"
    2324#include "parser.hh"  // for IDENTIFIER, TYPEDEFname, TYPEGENname
    2425
     
    3132                kind_t kind;
    3233        };
    33        
     34
    3435        struct DeferredEntry {
    3536                std::string identifier;
     
    4344        std::string currentTrait;
    4445        int contextScope;
    45        
     46
    4647        typedef std::list< DeferredEntry > deferListType;
    4748        std::stack< deferListType > deferListStack;
    4849        std::map< std::string, deferListType > contexts;
    49        
     50
    5051        std::stack< std::string > nextIdentifiers;
    5152
     
    6970        void addToEnclosingScope( const std::string &identifier, kind_t kind );
    7071        void addToEnclosingScope( kind_t kind );                // use nextIdentifiers.top()
    71        
     72
    7273        // "addToEnclosingScope2" adds the identifier/type pair to the scope that encloses the scope enclosing the the
    7374        // current one.  This is the right way to handle assertion names
    7475        void addToEnclosingScope2( const std::string &identifier, kind_t kind );
    7576        void addToEnclosingScope2( kind_t kind );               // use nextIdentifiers.top()
    76        
     77
    7778        // set the next identifier to be used by an "add" operation without an identifier parameter within the current scope
    7879        void setNextIdentifier( const std::string &identifier );
    79        
     80
    8081        // dump the definitions from a pre-defined context into the current scope
    8182        void openTrait( const std::string &contextName );
    82        
     83
    8384        void enterScope();
    8485        void leaveScope();
Note: See TracChangeset for help on using the changeset viewer.