[cfe-commits] [PATCH] Fix pretty-printing of decl group stmts

2012-10-18 Thread Richard Membarth
Attached is a patch that fixes pretty-printing of decl stmt groups. The example below shows that the current type pretty-printer does not print the variable name if Policy.SuppressSpecifiers is set. ~ cat test.cc int main(int argc, const char **argv) { int x=0, y=5; for (int i=x, j=y;

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

2011-11-11 Thread Richard Membarth
On 2011.11.07 20:00, Douglas Gregor wrote: On Nov 4, 2011, at 7:44 AM, Richard Membarth 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

Re: [cfe-commits] PATCH: support for pretty-printing OpenCL/CUDA keywords/attributes

2011-11-08 Thread Richard Membarth
On 2011.11.08 03:09, Peter Collingbourne wrote: On Fri, Oct 28, 2011 at 05:49:56PM +0200, Richard Membarth wrote: void DeclPrinter::VisitVarDecl(VarDecl *D) { - if (!Policy.SuppressSpecifiers D-getStorageClass() != SC_None) + if (!Policy.SuppressSpecifiers D-getStorageClass

Re: [cfe-commits] PATCH: support for pretty-printing OpenCL/CUDA keywords/attributes

2011-10-28 Thread Richard Membarth
On 2011.10.26 19:14, Peter Collingbourne wrote: On Tue, Oct 25, 2011 at 04:40:07PM +0200, Richard Membarth wrote: Hello all, I'm currently working on a source-to-source compiler for CUDA and OpenCL. The CUDA and OpenCL target code is emitted using the pretty-printer in Clang. Have

[cfe-commits] PATCH: support for pretty-printing OpenCL/CUDA keywords/attributes

2011-10-25 Thread Richard Membarth
Hello all, I'm currently working on a source-to-source compiler for CUDA and OpenCL. The CUDA and OpenCL target code is emitted using the pretty-printer in Clang. Attached is a patch that adds support for CUDA and OpenCL keywords/attributes to the pretty-printer. Please let me know if this is