[cfe-dev] DeclPrinter::VisitFunctionDecl v. TypePrinter::printFunctionProto

Douglas Gregor dgregor at apple.com
Wed Jan 26 16:51:41 PST 2011


On Jan 26, 2011, at 3:02 PM, dawn at burble.org wrote:

> 
> 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
> same.

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

	- Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110126/4d655630/attachment.html>


More information about the cfe-dev mailing list