clang API Documentation
Maps NamedDecls with the ASTLocations that reference them. More...
#include <DeclReferenceMap.h>
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 |
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.
| typedef pair_value_iterator<MapTy::iterator> clang::idx::DeclReferenceMap::astlocation_iterator |
Definition at line 36 of file DeclReferenceMap.h.
| typedef std::multimap<NamedDecl*, ASTLocation> clang::idx::DeclReferenceMap::MapTy |
Definition at line 35 of file DeclReferenceMap.h.
| DeclReferenceMap::DeclReferenceMap | ( | ASTContext & | Ctx | ) | [explicit] |
Definition at line 71 of file DeclReferenceMap.cpp.
References clang::ASTContext::getTranslationUnitDecl().
| 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().