[cfe-dev] A patch for printing policy and other stuff
eli.friedman at gmail.com
Wed Jul 1 10:50:20 PDT 2009
On Wed, Jul 1, 2009 at 6:29 AM, Olaf
Krzikalla<Olaf.Krzikalla at tu-dresden.de> wrote:
> Hi @clang,
> find attached a new patch considering the comments (includin Ted's).
> Chris Lattner schrieb:
>> Also, is there some way that you can expose the new printing style through
>> to the command line?
> Hmm, as far as I can see the printing policy is not customized by the
> command line yet. This is related to the fact that PrintingPolicy objects
> are constructed here and there even if one exists in the ASTContext. I think
> that the PrintingPolicy object in ASTContext has to be used consequently to
> expose printing style options through to the command line. That said one
> could think of making the PrintingPolicy ctor private and ASTContext a
> friend of PrintingPolicy. However this might be a too strict restriction
> (but not IMO).
You can expose it as an option for -ast-print mode pretty easily.
More information about the cfe-dev