Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/AST/Interp/Record.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | public: | ||||
/// Returns the size of the record. | /// Returns the size of the record. | ||||
unsigned getSize() const { return BaseSize; } | unsigned getSize() const { return BaseSize; } | ||||
/// Returns the full size of the record, including records. | /// Returns the full size of the record, including records. | ||||
unsigned getFullSize() const { return BaseSize + VirtualSize; } | unsigned getFullSize() const { return BaseSize + VirtualSize; } | ||||
/// Returns a field. | /// Returns a field. | ||||
const Field *getField(const FieldDecl *FD) const; | const Field *getField(const FieldDecl *FD) const; | ||||
/// Returns a base descriptor. | /// Returns a base descriptor. | ||||
const Base *getBase(const RecordDecl *FD) const; | const Base *getBase(const RecordDecl *FD) const; | ||||
/// Returns a base descriptor. | |||||
const Base *getBase(QualType T) const; | |||||
/// Returns a virtual base descriptor. | /// Returns a virtual base descriptor. | ||||
const Base *getVirtualBase(const RecordDecl *RD) const; | const Base *getVirtualBase(const RecordDecl *RD) const; | ||||
// Returns the destructor of the record, if any. | // Returns the destructor of the record, if any. | ||||
const CXXDestructorDecl *getDestructor() const { | const CXXDestructorDecl *getDestructor() const { | ||||
if (const auto *CXXDecl = dyn_cast<CXXRecordDecl>(Decl)) | if (const auto *CXXDecl = dyn_cast<CXXRecordDecl>(Decl)) | ||||
return CXXDecl->getDestructor(); | return CXXDecl->getDestructor(); | ||||
return nullptr; | return nullptr; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |