[cfe-commits] [PATCH] Fix pretty-printing of decl group stmts
Eli Friedman
eli.friedman at gmail.com
Thu Oct 18 14:07:50 PDT 2012
On Thu, Oct 18, 2012 at 5:06 AM, Richard Membarth
<richard.membarth at informatik.uni-erlangen.de> wrote:
> 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; i<j; i++) {
> ;
> }
> }
>
> ~ > clang -cc1 -ast-print test.cc
> int main(int argc, const char **argv) {
> int x = 0, = 5;
> for (int i = x, = y; i < j; i++) {
> ;
> }
> }
>
> Please let me know if this is ok.
I committed a different fix in r166227.
-Eli
More information about the cfe-commits
mailing list