]> granicus.if.org Git - clang/commit
Expose an API to print a group of decls (like "int a,b;").
authorEli Friedman <eli.friedman@gmail.com>
Sat, 30 May 2009 04:20:30 +0000 (04:20 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 30 May 2009 04:20:30 +0000 (04:20 +0000)
commit42f42c0dd5cf71fbfc6fa282d03079a902f6e342
tree0bf46b5d106a78443812a898b3e72e44d9120ead
parent4572baba9d18c275968ac113fd73b0e3c77cccb8
Expose an API to print a group of decls (like "int a,b;").
Make StmtPrinter use DeclPrinter to print all declarations.  Merge
declarations in the limited case of an unnamed TagDecl followed by one
or more declarations using that TagDecl directly.  Change
SuppressTypeSpecifiers to the more general SuppressSpecifiers, and
use it to suppress stuff like "typedef" and "extern".  Replace
OwnedTag with SuppressTag, since it's more convenient to print
declarations from DeclPrinter at the moment.
improvements to declaration printing.  Fix pretty-printing for K&R
function definitions and __builtin_va_arg.

We're now to the point where the pretty-printing output for non-trivial
programs can actually be piped back into clang.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72608 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclBase.h
include/clang/AST/PrettyPrinter.h
lib/AST/DeclPrinter.cpp
lib/AST/StmtPrinter.cpp
lib/AST/Type.cpp