class VisibleDeclConsumer
Declaration
class VisibleDeclConsumer { /* full declaration omitted */ };
Description
Consumes visible declarations found when searching for all visible names within a given scope or context. This abstract class is meant to be subclassed by clients of \c Sema::LookupVisibleDecls(), each of which should override the \c FoundDecl() function to process declarations as they are found.
Declared at: clang/include/clang/Sema/Lookup.h:790
Method Overview
- public virtual void EnteredContext(clang::DeclContext * Ctx)
- public virtual void FoundDecl(clang::NamedDecl * ND, clang::NamedDecl * Hiding, clang::DeclContext * Ctx, bool InBaseClass)
- public virtual bool includeHiddenDecls() const
- public virtual ~VisibleDeclConsumer()
Methods
¶virtual void EnteredContext(
clang::DeclContext* Ctx)
virtual void EnteredContext(
clang::DeclContext* Ctx)
Declared at: clang/include/clang/Sema/Lookup.h:819
Parameters
- clang::DeclContext* Ctx
- the context which Sema entered.
¶virtual void FoundDecl(clang::NamedDecl* ND,
clang::NamedDecl* Hiding,
clang::DeclContext* Ctx,
bool InBaseClass)
virtual void FoundDecl(clang::NamedDecl* ND,
clang::NamedDecl* Hiding,
clang::DeclContext* Ctx,
bool InBaseClass)
Description
Invoked each time \p Sema::LookupVisibleDecls() finds a declaration visible from the current scope or context.
Declared at: clang/include/clang/Sema/Lookup.h:812
Parameters
- clang::NamedDecl* ND
- the declaration found.
- clang::NamedDecl* Hiding
- a declaration that hides the declaration \p ND, or NULL if no such declaration exists.
- clang::DeclContext* Ctx
- the original context from which the lookup started.
- bool InBaseClass
- whether this declaration was found in base class of the context we searched.
¶virtual bool includeHiddenDecls() const
virtual bool includeHiddenDecls() const
Description
Determine whether hidden declarations (from unimported modules) should be given to this consumer. By default, they are not included.
Declared at: clang/include/clang/Sema/Lookup.h:798
¶virtual ~VisibleDeclConsumer()
virtual ~VisibleDeclConsumer()
Description
Destroys the visible declaration consumer.
Declared at: clang/include/clang/Sema/Lookup.h:793