diff options
| author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-07-05 01:44:14 +0000 |
|---|---|---|
| committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-07-05 01:44:14 +0000 |
| commit | 5776d439ca3052d4197e0bea6642432d45f9f3e1 (patch) | |
| tree | 7717785327c07a63172b8a32bc30eefea72d4186 /clang/lib | |
| parent | e6b999bf9a11597dd38273efa99044994f300a47 (diff) | |
| download | bcm5719-llvm-5776d439ca3052d4197e0bea6642432d45f9f3e1.tar.gz bcm5719-llvm-5776d439ca3052d4197e0bea6642432d45f9f3e1.zip | |
Indexer: make FieldDecl an internal Entity.
llvm-svn: 107604
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Index/Entity.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Index/Entity.cpp b/clang/lib/Index/Entity.cpp index cd9d277bb6c..fb3c7ae4c0a 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 //===----------------------------------------------------------------------===// |

