From 5776d439ca3052d4197e0bea6642432d45f9f3e1 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Mon, 5 Jul 2010 01:44:14 +0000 Subject: [PATCH] Indexer: make FieldDecl an internal Entity. llvm-svn: 107604 --- clang/lib/Index/Entity.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clang/lib/Index/Entity.cpp b/clang/lib/Index/Entity.cpp index cd9d277bb6cb..fb3c7ae4c0a9 100644 --- a/clang/lib/Index/Entity.cpp +++ b/clang/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 //===----------------------------------------------------------------------===//