AST printing

$ 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