Origin of a Type

   I want to find out the origin of a type. Consider a type "string" or
"FILE". I want to find out where it came from. For "string", it would be
string.h or whichever file the "string" class is defined. Also, can I get
the original class declaration as a Record variable.


For a given SourceLocation, there are methods on SourceManager to
figure out which file it is located in.

If you have a RecordType, it has a getDecl() method.