[cfe-dev] A patch for printing policy and other stuff

Olaf Krzikalla Olaf.Krzikalla at tu-dresden.de
Wed Jul 1 06:29:06 PDT 2009


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

Best
Olaf Krzikalla

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: printingStuff.patch
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090701/bb730637/attachment.ksh>


More information about the cfe-dev mailing list