[PATCH] D39903: [libclang] Allow pretty printing declarations
Cameron via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 4 13:50:18 PST 2017
cameron314 added a comment.
Locally we've done something similar (adding a `clang_getCursorPrettyPrintedDeclaration` function, though without exposing the `PrintingPolicy`) and overhauled `DeclPrinter` to produce proper pretty names. This is a hack that works well for us, but can never be upstreamed since it breaks too much existing code (and some of the printing decisions are subjective). Your way is better.
I can point out differences in our implementations if you like. The diff is rather long, though.
Repository:
rC Clang
https://reviews.llvm.org/D39903
More information about the cfe-commits
mailing list