[cfe-dev] Why Printer Classes are private?
Roman Popov via cfe-dev
cfe-dev at lists.llvm.org
Wed Oct 18 14:35:30 PDT 2017
In StmtPrinter there is a PrintHelper that can be used to override printing
of some nodes. I guess PrintHelper was introduced for someone like me that
wanted to override some StmtPrinter visitors.
But DeclPrinter does not supports PrintHelper for some reason.
2017-10-18 12:53 GMT-07:00 Roman Popov <ripopov at gmail.com>:
> Hello,
> I want to redefine some visitors in DeclPrinter and StmtPrinter, but they
> are not exported over Clang API. Why is that?
>
> Currently I have to copy-paste them into my tool. But this unfortunately
> leads to some duplication.
>
> -Roman
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20171018/92731eef/attachment.html>
More information about the cfe-dev
mailing list