Entity VisitVarDecl(VarDecl *D);
Entity VisitFieldDecl(FieldDecl *D);
Entity VisitFunctionDecl(FunctionDecl *D);
+ Entity VisitTypeDecl(TypeDecl *D);
};
}
return Entity();
}
+Entity EntityGetter::VisitTypeDecl(TypeDecl *D) {
+ // Make TypeDecl an invalid Entity. Although in C++ class name has external
+ // linkage, usually the definition of the class is available in the same
+ // translation unit when it's needed. So we make all of them invalid Entity.
+ return Entity();
+}
+
//===----------------------------------------------------------------------===//
// EntityImpl Implementation
//===----------------------------------------------------------------------===//