class EntityHandler {
public:
virtual ~EntityHandler();
- virtual void HandleEntity(Entity Ent) = 0;
+ virtual void Handle(Entity Ent) = 0;
};
/// \brief Abstract interface for receiving TranslationUnits.
public:
EntityIndexer(TranslationUnit *tu, Indexer::MapTy &map) : TU(tu), Map(map) { }
- virtual void HandleEntity(Entity Ent) {
+ virtual void Handle(Entity Ent) {
if (Ent.isInternalToTU())
return;
Map[Ent].insert(TU);
continue;
Entity Ent = Entity::get(*I, Prog);
if (Ent.isValid())
- Handler->HandleEntity(Ent);
+ Handler->Handle(Ent);
if (DeclContext *SubDC = dyn_cast<DeclContext>(*I))
FindEntitiesInDC(SubDC, Prog, Handler);
}