Probably you are looking for some base graph walk. A look into “computeOffsetHint” function in lib/CodeGen/CGExprCXX.cpp might provide you some idea. But this function calculates the offset hint for doing pointer arithmetic.
------- Original Message -------
Sender : Sebastian Redlsebastian.redl@getdesigned.at
Title : Re: [cfe-dev] Getting RecordDecl from CXXBaseSpecifier