[cfe-dev] AST printing

Chris Lattner clattner at apple.com
Tue Nov 27 20:35:08 PST 2007


On Nov 27, 2007, at 8:28 PM, Sanghyeon Seo wrote:

> $ clang -ast-print test/Sema/typedef-prototype.c
>
> clang: /home/tinuviel/build/llvm/include/llvm/Support/Casting.h:199:
> typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&)
> [with X = clang::FunctionType, Y = clang::QualType]: Assertion
> `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
>
> Am I correct in that "unary_int_func add_one;" should be printed, not
> "int add_one(int);"?

Yep, that would be preferable.

-Chris



More information about the cfe-dev mailing list