clang API Documentation

Public Member Functions
clang::VisibleDeclConsumer Class Reference

Consumes visible declarations found when searching for all visible names within a given scope or context. More...

#include <Lookup.h>

Inheritance diagram for clang::VisibleDeclConsumer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~VisibleDeclConsumer ()
 Destroys the visible declaration consumer.
virtual bool includeHiddenDecls () const
 Determine whether hidden declarations (from unimported modules) should be given to this consumer. By default, they are not included.
virtual void FoundDecl (NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx, bool InBaseClass)=0
 Invoked each time Sema::LookupVisibleDecls() finds a declaration visible from the current scope or context.

Detailed 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 Sema::LookupVisibleDecls(), each of which should override the FoundDecl() function to process declarations as they are found.

Definition at line 696 of file Lookup.h.


Constructor & Destructor Documentation

Destroys the visible declaration consumer.

Definition at line 2861 of file SemaLookup.cpp.


Member Function Documentation

virtual void clang::VisibleDeclConsumer::FoundDecl ( NamedDecl ND,
NamedDecl Hiding,
DeclContext Ctx,
bool  InBaseClass 
) [pure virtual]

Invoked each time Sema::LookupVisibleDecls() finds a declaration visible from the current scope or context.

Parameters:
NDthe declaration found.
Hidinga declaration that hides the declaration ND, or NULL if no such declaration exists.
Ctxthe original context from which the lookup started.
InBaseClasswhether this declaration was found in base class of the context we searched.

Implemented in clang::TypoCorrectionConsumer.

Referenced by LookupVisibleDecls().

Determine whether hidden declarations (from unimported modules) should be given to this consumer. By default, they are not included.

Reimplemented in clang::TypoCorrectionConsumer.

Definition at line 2863 of file SemaLookup.cpp.

Referenced by clang::Sema::LookupVisibleDecls().


The documentation for this class was generated from the following files: