Getting the typedef definition from the AST

Hi,

I am working on a source to source translator based on clang. Right now I am trying to get the definition of the typedef from the original source code. Is is possible to get it from the AST? What is the straight way to get it?

Thanks,

Miguel