clang API Documentation
Consumes visible declarations found when searching for all visible names within a given scope or context. More...
#include <Lookup.h>
Public Member Functions | |
| virtual | ~VisibleDeclConsumer () |
| Destroys the visible declaration consumer. | |
| 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. | |
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.
| VisibleDeclConsumer::~VisibleDeclConsumer | ( | ) | [virtual] |
Destroys the visible declaration consumer.
Definition at line 2735 of file SemaLookup.cpp.
| 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.
| ND | the declaration found. |
| Hiding | a declaration that hides the declaration ND, or NULL if no such declaration exists. |
| Ctx | the original context from which the lookup started. |
| InBaseClass | whether this declaration was found in base class of the context we searched. |
Referenced by LookupVisibleDecls().