[cfe-commits] [PATCH] Teach -ast-print about template template parameters

Douglas Gregor dgregor at apple.com
Thu Apr 14 15:23:09 PDT 2011

On Apr 14, 2011, at 3:20 PM, Richard Smith wrote:

> Hi,
> clang -cc1 -ast-print currently doesn't know about template template
> parameters:
>  $ echo -e 'template<template<typename T> class> void f();' | clang++
> -cc1 -std=c++98 -ast-print
>  [...]
>  template <> void f();
> The attached patch teaches it to print them (though any default argument
> is not yet printed). OK to commit?

Looks good. For simple little patches like this (especially ones that only affect debugging-related stuff like -ast-print), just go ahead and commit when you think it's good: it'll get reviewed post-commit.

	- Doug

More information about the cfe-commits mailing list