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;
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
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
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
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