clang API Documentation

Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
clang::RecordType Class Reference

#include <Type.h>

Inheritance diagram for clang::RecordType:
Inheritance graph
[legend]
Collaboration diagram for clang::RecordType:
Collaboration graph
[legend]

List of all members.

Public Member Functions

RecordDeclgetDecl () const
bool hasConstFields () const
bool isSugared () const
QualType desugar () const

Static Public Member Functions

static bool classof (const Type *T)
static bool classof (const RecordType *)

Protected Member Functions

 RecordType (const RecordDecl *D)
 RecordType (TypeClass TC, RecordDecl *D)

Friends

class ASTContext

Detailed Description

RecordType - This is a helper class that allows the use of isa/cast/dyncast to detect TagType objects of structs/unions/classes.

Definition at line 3139 of file Type.h.


Constructor & Destructor Documentation

clang::RecordType::RecordType ( const RecordDecl D) [inline, explicit, protected]

Definition at line 3141 of file Type.h.

clang::RecordType::RecordType ( TypeClass  TC,
RecordDecl D 
) [inline, explicit, protected]

Definition at line 3143 of file Type.h.


Member Function Documentation

static bool clang::RecordType::classof ( const Type T) [inline, static]

Reimplemented from clang::TagType.

Definition at line 3160 of file Type.h.

References clang::Type::getTypeClass().

static bool clang::RecordType::classof ( const RecordType ) [inline, static]

Definition at line 3161 of file Type.h.

QualType clang::RecordType::desugar ( ) const [inline]

Definition at line 3158 of file Type.h.

RecordDecl* clang::RecordType::getDecl ( ) const [inline]

Reimplemented from clang::TagType.

Definition at line 3148 of file Type.h.

References clang::TagType::getDecl().

Referenced by addAssociatedClassesAndNamespaces(), clang::BuiltinCandidateTypeSet::AddTypesConvertedFrom(), BitsContainNoUserData(), clang::CodeGen::CodeGenFunction::BuildAppleKextVirtualCall(), clang::Sema::BuildBuiltinOffsetOf(), clang::Sema::BuildOverloadedArrowExpr(), canExpandIndirectArgument(), CanTypeidThrow(), clang::Sema::CheckCXXThrowOperand(), checkForLockableRecord(), clang::Sema::CheckMemberOperatorAccess(), clang::Sema::CheckQualifiedMemberReference(), clang::Sema::CheckTransparentUnionArgumentConstraints(), CollectVisibleConversions(), clang::CollectVRQualifiers(), clang::Sema::ConvertToIntegralOrEnumerationType(), clang::Sema::DeclareInheritedConstructors(), DeduceTemplateArguments(), DeduceTemplateArgumentsByTypeMatch(), clang::Sema::DiagnoseNontrivial(), doesUsualArrayDeleteWantSize(), DumpCXXRecordLayout(), clang::CodeGen::CodeGenFunction::EmitAggregateCopy(), clang::CodeGen::CodeGenFunction::EmitCastLValue(), EmitMemberInitializer(), clang::CodeGen::CodeGenModule::EmitNullConstant(), EvaluateBinaryTypeTrait(), FieldHasTrivialDestructorBody(), FillInNullDataMemberPointers(), clang::Sema::FinalizeVarWithDestructor(), clang::Sema::FindInstantiatedDecl(), clang::CXXRecordDecl::forallBases(), clang::QualType::getBaseTypeIdentifier(), clang::CFGImplicitDtor::getDestructorDecl(), clang::ASTContext::getTypeInfo(), handleAcquireOrderAttr(), hasNonTrivialDestructorOrCopyConstructor(), isCFStringType(), isCharSpecialization(), isEmptyField(), isEmptyRecord(), clang::CodeGen::CodeGenTypes::isFuncTypeArgumentConvertible(), isHomogeneousAggregate(), IsIncompleteClassType(), isIntegerLikeType(), isRecordWithSSEVectorType(), isSafeForCXXConstantCapture(), isSingleElementStruct(), clang::IsTransparentUnionStandardConversion(), LookupMemberExprInRecord(), LookupVisibleDecls(), clang::Sema::MarkBaseAndMemberDestructorsReferenced(), clang::Sema::MaybeBindToTemporary(), clang::Sema::RequireLiteralType(), clang::Sema::RequireNonAbstractType(), clang::ASTContext::setCFConstantStringType(), TryConstructorInitialization(), TryRefInitWithConversionFunction(), TryValueInitialization(), and clang::ASTNodeImporter::VisitRecordType().

bool clang::RecordType::hasConstFields ( ) const [inline]

Definition at line 3155 of file Type.h.

bool clang::RecordType::isSugared ( ) const [inline]

Definition at line 3157 of file Type.h.


Friends And Related Function Documentation

friend class ASTContext [friend]

Reimplemented from clang::Type.

Definition at line 3145 of file Type.h.


The documentation for this class was generated from the following file: