[cfe-dev] AST printing

Sanghyeon Seo sanxiyn at gmail.com
Tue Nov 27 20:28:21 PST 2007


$ 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);"?

-- 
Seo Sanghyeon



More information about the cfe-dev mailing list