forked from OSchip/llvm-project
Indexer: make FieldDecl an internal Entity.
llvm-svn: 107604
This commit is contained in:
parent
e6b999bf9a
commit
5776d439ca
|
@ -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
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue