[AST Printing] Print custom attributes on parameters.

Fixes rdar://problem/50232955.
This commit is contained in:
Doug Gregor
2019-04-26 11:47:55 -07:00
committed by John McCall
parent fa461a70d7
commit 50fe8e29ea
3 changed files with 53 additions and 0 deletions

View File

@@ -2590,6 +2590,7 @@ void PrintAST::printOneParameter(const ParamDecl *param,
auto TheTypeLoc = param->getTypeLoc();
printAttributes(param);
printArgName();
if (!TheTypeLoc.getTypeRepr() && param->hasInterfaceType())