Introduce the DeclReferenceMap class inside the AST library.
commit4054a66c33880360183bb6e48efe11dfbf2a0f52
authorArgiris Kirtzidis <akyrtzi@gmail.com>
Sun, 5 Jul 2009 22:22:06 +0000 (5 22:22 +0000)
committerArgiris Kirtzidis <akyrtzi@gmail.com>
Sun, 5 Jul 2009 22:22:06 +0000 (5 22:22 +0000)
tree33e173c8ed6f33bf8d468749ce95e2d4fefcfa71
parent5ea54f629ae53a1be581920b98e90370e09d5fc4
Introduce the DeclReferenceMap class inside the AST library.

DeclReferenceMap (similar to ParentMap) is a helper class for mapping Decls to the AST nodes that reference them.
A client will initialize it by passing an ASTContext to its constructor and later use it to iterate over
the references of a Decl.
References are mapped and retrieved using the primary declaration (Decl::getPrimaryDecl()) of a particular Decl.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74801 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclReferenceMap.h [new file with mode: 0644]
lib/AST/CMakeLists.txt
lib/AST/DeclReferenceMap.cpp [new file with mode: 0644]