clang API Documentation

Public Types | Public Member Functions
clang::idx::DeclReferenceMap Class Reference

Maps NamedDecls with the ASTLocations that reference them. More...

#include <DeclReferenceMap.h>

List of all members.

Public Types

typedef std::multimap
< NamedDecl *, ASTLocation
MapTy
typedef pair_value_iterator
< MapTy::iterator > 
astlocation_iterator

Public Member Functions

 DeclReferenceMap (ASTContext &Ctx)
astlocation_iterator refs_begin (NamedDecl *D) const
astlocation_iterator refs_end (NamedDecl *D) const
bool refs_empty (NamedDecl *D) const

Detailed Description

Maps NamedDecls with the ASTLocations that reference them.

References are mapped and retrieved using the canonical decls.

Definition at line 31 of file DeclReferenceMap.h.


Member Typedef Documentation

Definition at line 36 of file DeclReferenceMap.h.

Definition at line 35 of file DeclReferenceMap.h.


Constructor & Destructor Documentation

DeclReferenceMap::DeclReferenceMap ( ASTContext Ctx) [explicit]

Definition at line 71 of file DeclReferenceMap.cpp.

References clang::ASTContext::getTranslationUnitDecl().


Member Function Documentation

DeclReferenceMap::astlocation_iterator DeclReferenceMap::refs_begin ( NamedDecl D) const

Definition at line 76 of file DeclReferenceMap.cpp.

References clang::Decl::getCanonicalDecl().

Referenced by refs_empty().

bool DeclReferenceMap::refs_empty ( NamedDecl D) const

Definition at line 87 of file DeclReferenceMap.cpp.

References clang::Decl::getCanonicalDecl(), refs_begin(), and refs_end().

DeclReferenceMap::astlocation_iterator DeclReferenceMap::refs_end ( NamedDecl D) const

Definition at line 82 of file DeclReferenceMap.cpp.

References clang::Decl::getCanonicalDecl().

Referenced by refs_empty().


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