[cfe-commits] [PATCH] Add support for pretty-printing attributes

Eli Friedman eli.friedman at gmail.com
Mon Nov 7 18:17:44 PST 2011


On Fri, Nov 4, 2011 at 7:44 AM, Richard Membarth
<richard.membarth at informatik.uni-erlangen.de> wrote:
> Attached is a patch that adds support for pretty-printing attributes
> stored in the AST. Tblgen is used to generate the necessary code for
> pretty printing attributes as suggest by Peter in [1].
>
> Please let me know if this is ok.

+  // Pretty print this attribute.
+  virtual void printPretty(llvm::raw_ostream &OUT, ASTContext &C) const = 0;

Nit: "llvm::raw_ostream &OS".

I don't see any other issues; I'm not really that familiar with the
attribute TableGen bits, though.  I was hoping someone more familiar
with that would review.

-Eli



More information about the cfe-commits mailing list