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

Richard Smith richard at metafoo.co.uk
Thu Apr 14 15:20:51 PDT 2011


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?

Thanks,
Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ast-print-template-template-parm
Type: application/octet-stream
Size: 1609 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110414/fdbb337a/attachment.obj>


More information about the cfe-commits mailing list