16               FieldList &&SrcFields, VirtualBaseList &&SrcVirtualBases,
 
   17               unsigned VirtualSize, 
unsigned BaseSize)
 
   18    : 
Decl(
Decl), Bases(
std::move(SrcBases)), Fields(
std::move(SrcFields)),
 
   19      BaseSize(BaseSize), VirtualSize(VirtualSize), IsUnion(
Decl->isUnion()),
 
   20      IsAnonymousUnion(IsUnion && 
Decl->isAnonymousStructOrUnion()) {
 
   21  for (
Base &
V : SrcVirtualBases)
 
   22    VirtualBases.push_back({V.Decl, V.Offset + BaseSize, V.Desc, V.R});
 
   26  for (Field &F : Fields)
 
   27    FieldMap[F.Decl] = &F;
 
   29    VirtualBaseMap[
V.Decl] = &
V;
 
   32std::string Record::getName()
 const {
 
   34  llvm::raw_string_ostream OS(
Ret);
 
   35  Decl->getNameForDiagnostic(OS, Decl->getASTContext().getPrintingPolicy(),
 
 
   40bool Record::hasTrivialDtor()
 const {
 
 
   47const Record::Field *Record::getField(
const FieldDecl *FD)
 const {
 
   49  assert(It != FieldMap.end() && 
"Missing field");
 
 
   53const Record::Base *Record::getBase(
const RecordDecl *FD)
 const {
 
   54  auto It = BaseMap.find(FD);
 
   55  assert(It != BaseMap.end() && 
"Missing base");
 
 
   59const Record::Base *Record::getBase(
QualType T)
 const {
 
   60  if (
auto *RD = 
T->getAsCXXRecordDecl())
 
   61    return BaseMap.lookup(RD);
 
 
   65const Record::Base *Record::getVirtualBase(
const RecordDecl *FD)
 const {
 
   66  auto It = VirtualBaseMap.find(FD);
 
   67  assert(It != VirtualBaseMap.end() && 
"Missing virtual base");
 
 
Defines the clang::ASTContext interface.
 
Represents a C++ destructor within a class.
 
Decl - This represents one declaration (or definition), e.g.
 
Represents a member of a struct/union/class.
 
bool isTrivial() const
Whether this function is "trivial" in some specialized C++ senses.
 
decl_type * getFirstDecl()
Return the first declaration of this declaration or itself if this is the only declaration.
 
A (possibly-)qualified type.
 
Represents a struct/union/class.
 
const CXXDestructorDecl * getDestructor() const
Returns the destructor of the record, if any.
 
bool isAnonymousUnion() const
Checks if the record is an anonymous union.
 
bool Ret(InterpState &S, CodePtr &PC)
 
The JSON file list parser is used to communicate input to InstallAPI.
 
const FunctionProtoType * T
 
for(const auto &A :T->param_types())