Changeset de62360d for src/Parser/TypedefTable.h
- Timestamp:
- Jun 24, 2015, 4:04:19 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 94e0864d
- Parents:
- a1d5d2a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypedefTable.h
ra1d5d2a rde62360d 10 10 // Created On : Sat May 16 15:24:36 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat May 16 15:25:59201513 // Update Count : 312 // Last Modified On : Thu Jun 18 21:03:17 2015 13 // Update Count : 7 14 14 // 15 15 … … 49 49 std::stack< std::string > nextIdentifiers; 50 50 51 bool isKind( std::stringidentifier, kind_t kind ) const;51 bool isKind( const std::string &identifier, kind_t kind ) const; 52 52 void addToScope( const std::string &identifier, kind_t kind, int scope ); 53 53 public: 54 54 TypedefTable(); 55 55 56 bool isIdentifier( std::stringidentifier ) const;57 bool isTypedef( std::stringidentifier ) const;58 bool isTypegen( std::stringidentifier ) const;56 bool isIdentifier( const std::string &identifier ) const; 57 bool isTypedef( const std::string &identifier ) const; 58 bool isTypegen( const std::string &identifier ) const; 59 59 60 // "addToCurrentScope" adds the identifier/type pair to the current scope This does less than you think it does,60 // "addToCurrentScope" adds the identifier/type pair to the current scope. This does less than you think it does, 61 61 // since each declaration is within its own scope. Mostly useful for type parameters. 62 62 void addToCurrentScope( const std::string &identifier, kind_t kind ); … … 77 77 78 78 // dump the definitions from a pre-defined context into the current scope 79 void openContext( std::stringcontextName );79 void openContext( const std::string &contextName ); 80 80 81 81 void enterScope(); 82 82 void leaveScope(); 83 void enterContext( std::stringcontextName );83 void enterContext( const std::string &contextName ); 84 84 void leaveContext(); 85 85
Note: See TracChangeset
for help on using the changeset viewer.