[cfe-commits] r107604 - /cfe/trunk/lib/Index/Entity.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Sun Jul 4 18:44:14 PDT 2010
Author: zhongxingxu
Date: Sun Jul 4 20:44:14 2010
New Revision: 107604
URL: http://llvm.org/viewvc/llvm-project?rev=107604&view=rev
Log:
Indexer: make FieldDecl an internal Entity.
Modified:
cfe/trunk/lib/Index/Entity.cpp
Modified: cfe/trunk/lib/Index/Entity.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Index/Entity.cpp?rev=107604&r1=107603&r2=107604&view=diff
==============================================================================
--- cfe/trunk/lib/Index/Entity.cpp (original)
+++ cfe/trunk/lib/Index/Entity.cpp Sun Jul 4 20:44:14 2010
@@ -44,6 +44,7 @@
Entity VisitNamedDecl(NamedDecl *D);
Entity VisitVarDecl(VarDecl *D);
+ Entity VisitFieldDecl(FieldDecl *D);
Entity VisitFunctionDecl(FunctionDecl *D);
};
@@ -124,6 +125,11 @@
return VisitNamedDecl(D);
}
+Entity EntityGetter::VisitFieldDecl(FieldDecl *D) {
+ // Make FieldDecl an internal Entity.
+ return Entity(D);
+}
+
//===----------------------------------------------------------------------===//
// EntityImpl Implementation
//===----------------------------------------------------------------------===//
More information about the cfe-commits
mailing list