Changeset b067d9b for src/Parser/TypedefTable.h
- Timestamp:
- Oct 29, 2019, 4:01:24 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 773db65, 9421f3d8
- Parents:
- 7951100 (diff), 8364209 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypedefTable.h
r7951100 rb067d9b 10 10 // Created On : Sat May 16 15:24:36 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jun 7 12:10:17201813 // Update Count : 8512 // Last Modified On : Wed Jul 25 15:33:55 2018 13 // Update Count : 114 14 14 // 15 15 … … 23 23 24 24 class TypedefTable { 25 typedef ScopedMap< std::string, int > KindTable; 25 struct Note { size_t level; bool forall; }; 26 typedef ScopedMap< std::string, int, Note > KindTable; 26 27 KindTable kindTable; 28 unsigned int level = 0; 27 29 public: 28 30 ~TypedefTable(); 29 31 30 32 bool exists( const std::string & identifier ); 33 bool existsCurr( const std::string & identifier ); 31 34 int isKind( const std::string & identifier ) const; 32 35 void makeTypedef( const std::string & name, int kind = TYPEDEFname ); 33 36 void addToScope( const std::string & identifier, int kind, const char * ); 34 37 void addToEnclosingScope( const std::string & identifier, int kind, const char * ); 38 bool getEnclForall() { return kindTable.getNote( kindTable.currentScope() - 1 ).forall; } 35 39 36 40 void enterScope(); 37 41 void leaveScope(); 42 43 void up( bool ); 44 void down(); 38 45 39 46 void print( void ) const;
Note:
See TracChangeset
for help on using the changeset viewer.