aboutsummaryrefslogtreecommitdiff
path: root/lib/Index/Entity.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-07-05 01:44:14 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-07-05 01:44:14 +0000
commit139d0b39501404665b1b0ccaaaf5632c42419ebf (patch)
treed06d1d2e9d6d51f8c5bd4a3576ea945933094f55 /lib/Index/Entity.cpp
parent52e04c537633377fb14cfa4fa3c95e3e510fc942 (diff)
Indexer: make FieldDecl an internal Entity.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107604 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index/Entity.cpp')
-rw-r--r--lib/Index/Entity.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Index/Entity.cpp b/lib/Index/Entity.cpp
index cd9d277bb6..fb3c7ae4c0 100644
--- a/lib/Index/Entity.cpp
+++ b/lib/Index/Entity.cpp
@@ -44,6 +44,7 @@ public:
Entity VisitNamedDecl(NamedDecl *D);
Entity VisitVarDecl(VarDecl *D);
+ Entity VisitFieldDecl(FieldDecl *D);
Entity VisitFunctionDecl(FunctionDecl *D);
};
@@ -124,6 +125,11 @@ Entity EntityGetter::VisitFunctionDecl(FunctionDecl *D) {
return VisitNamedDecl(D);
}
+Entity EntityGetter::VisitFieldDecl(FieldDecl *D) {
+ // Make FieldDecl an internal Entity.
+ return Entity(D);
+}
+
//===----------------------------------------------------------------------===//
// EntityImpl Implementation
//===----------------------------------------------------------------------===//