DeclPrinter::VisitFunctionDecl v. TypePrinter::printFunctionProto

Is there any reason why DeclPrinter::VisitFunctionDecl and
TypePrinter::printFunctionProto don't share the same code? I wanted to
be able to see a function decl's calling convention when dumping the ast
and found myself copying that code from printFunctionProto into
VisitFunctionDecl (yuk). The rest of the code looks more or less the


Most likely, they just evolved separately and nobody has contributed the fix to unify them.

  • Doug