Changeset fc20514 for src/Parser/TypedefTable.h
- Timestamp:
- Jul 11, 2018, 11:53:09 AM (6 years ago)
- 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, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 777ed2b
- Parents:
- 132d276
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypedefTable.h
r132d276 rfc20514 10 10 // Created On : Sat May 16 15:24:36 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jun 22 05:29:58201813 // Update Count : 8612 // Last Modified On : Tue Jul 10 18:32:23 2018 13 // Update Count : 112 14 14 // 15 15 … … 23 23 24 24 class TypedefTable { 25 typedef ScopedMap< std::string, int, int > KindTable; 25 struct Note { size_t level; bool forall; }; 26 typedef ScopedMap< std::string, int, Note > KindTable; 26 27 KindTable kindTable; 27 unsigned int level ;28 unsigned int level = 0; 28 29 public: 29 TypedefTable() : kindTable{0}, level{0} {}30 30 ~TypedefTable(); 31 31 … … 35 35 void addToScope( const std::string & identifier, int kind, const char * ); 36 36 void addToEnclosingScope( const std::string & identifier, int kind, const char * ); 37 bool getEnclForall() { return kindTable.getNote( kindTable.currentScope() - 1 ).forall; } 37 38 38 39 void enterScope(); 39 40 void leaveScope(); 40 41 41 void up( ) { level += 1; }42 void down() { level -= 1; }42 void up( bool ); 43 void down(); 43 44 44 45 void print( void ) const;
Note: See TracChangeset
for help on using the changeset viewer.