[TypeInterface] When printing type-specific interfaces, replace parameter and return types with instantiated types.

This commit is contained in:
Xi Ge
2015-11-17 11:44:50 -08:00
parent 606cc822a5
commit 9beeb56a90
7 changed files with 110 additions and 36 deletions

View File

@@ -391,7 +391,8 @@ static bool passCursorInfoForDecl(const ValueDecl *VD,
Info.OverrideUSRs = OverUSRs;
Info.AnnotatedRelatedDeclarations = AnnotatedRelatedDecls;
Info.IsSystem = IsSystem;
Info.TypeInteface = ASTPrinter::printTypeInterface(Ty, TypeInterface) ?
Info.TypeInteface = ASTPrinter::printTypeInterface(Ty, VD->getDeclContext(),
TypeInterface) ?
StringRef(TypeInterface) : StringRef();
Receiver(Info);
return false;