Ignore:
Timestamp:
Mar 8, 2016, 5:52:39 PM (6 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
aaron-thesis, arm-eh, 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, resolv-new, string, with_gc
Children:
ac633d0, ae357ec
Parents:
52c2a72
Message:

Fold IdTable? into indexer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Indexer.h

    r52c2a72 rbed4c63e  
    8080                void leaveScope();
    8181
     82                /// Gets all declarations with the given ID
    8283                void lookupId( const std::string &id, std::list< DeclarationWithType* > &out ) const;
    83                 DeclarationWithType* lookupId( const std::string &id ) const;
     84                /// Gets the top-most type declaration with the given ID
    8485                NamedTypeDecl *lookupType( const std::string &id ) const;
     86                /// Gets the top-most struct declaration with the given ID
    8587                StructDecl *lookupStruct( const std::string &id ) const;
     88                /// Gets the top-most enum declaration with the given ID
    8689                EnumDecl *lookupEnum( const std::string &id ) const;
     90                /// Gets the top-most union declaration with the given ID
    8791                UnionDecl *lookupUnion( const std::string &id ) const;
     92                /// Gets the top-most trait declaration with the given ID
    8893                TraitDecl *lookupTrait( const std::string &id ) const;
    8994 
    9095                void print( std::ostream &os, int indent = 0 ) const;
    9196          private:
     97                /// looks up a specific mangled ID at the given scope
     98                DeclarationWithType *lookupIdAtScope( const std::string &id, const std::string &mangleName, unsigned long scope ) const;
     99                /// returns true if there exists a declaration with C linkage and the given name
     100                bool hasCDeclWithName( const std::string &id ) const;
    92101                // equivalents to lookup functions that only look at tables at scope `scope` (which should be >= tables->scope)
    93102                NamedTypeDecl *lookupTypeAtScope( const std::string &id, unsigned long scope ) const;
Note: See TracChangeset for help on using the changeset viewer.