[SourceKit] for cursor-info request, printing underlying types instead of namelias type. rdar://28216890 (#5339)

This commit is contained in:
Xi Ge
2016-10-17 22:18:59 -07:00
committed by GitHub
parent 14b689dee1
commit 0443a4dc46
6 changed files with 54 additions and 4 deletions

View File

@@ -644,7 +644,9 @@ static bool passCursorInfoForDecl(const ValueDecl *VD,
unsigned TypenameBegin = SS.size();
if (VD->hasType()) {
llvm::raw_svector_ostream OS(SS);
VD->getInterfaceType().print(OS);
PrintOptions Options;
Options.PrintNameAliasUnderlyingType = true;
VD->getInterfaceType().print(OS, Options);
}
unsigned TypenameEnd = SS.size();