Changeset 2f0a0678 for src/Parser/TypedefTable.h
- Timestamp:
- May 22, 2018, 9:26:14 AM (5 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypedefTable.h
r21bdce2 r2f0a0678 10 10 // Created On : Sat May 16 15:24:36 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 21 20:28:01201813 // Update Count : 7 612 // Last Modified On : Tue May 22 08:39:29 2018 13 // Update Count : 77 14 14 // 15 15 … … 23 23 24 24 class 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; 29 26 KindTable kindTable; 30 27 public: … … 33 30 bool exists( const std::string & identifier ); 34 31 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 ); 36 33 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 ); 38 35 39 36 void enterScope();
Note: See TracChangeset
for help on using the changeset viewer.