Ignore:
Timestamp:
May 22, 2018, 9:26:14 AM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, 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, pthread-emulation, qualifiedEnum, with_gc
Children:
3d2ae8d, cac8a6e
Parents:
21bdce2
Message:

simplify TypedefTable?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/TypedefTable.h

    r21bdce2 r2f0a0678  
    1010// Created On       : Sat May 16 15:24:36 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon May 21 20:28:01 2018
    13 // Update Count     : 76
     12// Last Modified On : Tue May 22 08:39:29 2018
     13// Update Count     : 77
    1414//
    1515
     
    2323
    2424class TypedefTable {
    25   public:
    26         enum kind_t { ID = IDENTIFIER, TD = TYPEDEFname, TG = TYPEGENname };
    27   private:
    28         typedef ScopedMap< std::string, kind_t > KindTable;
     25        typedef ScopedMap< std::string, int > KindTable;
    2926        KindTable kindTable;   
    3027  public:
     
    3330        bool exists( const std::string & identifier );
    3431        int isKind( const std::string & identifier ) const;
    35         void changeKind( const std::string & identifier, kind_t kind );
     32        void changeKind( const std::string & identifier, int kind );
    3633        void makeTypedef( const std::string & name );
    37         void addToEnclosingScope( const std::string & identifier, kind_t kind );
     34        void addToEnclosingScope( const std::string & identifier, int kind );
    3835
    3936        void enterScope();
Note: See TracChangeset for help on using the changeset viewer.