clang API Documentation
Represents a C++ struct/union/class. More...
#include <DeclCXX.h>
Classes | |
struct | DefinitionData |
class | friend_iterator |
An iterator over the friend declarations of a class. More... | |
struct | LambdaDefinitionData |
Describes a C++ closure type (generated by a lambda expression). | |
Public Types | |
typedef CXXBaseSpecifier * | base_class_iterator |
Iterator that traverses the base classes of a class. | |
typedef const CXXBaseSpecifier * | base_class_const_iterator |
Iterator that traverses the base classes of a class. | |
typedef llvm::iterator_range < base_class_iterator > | base_class_range |
typedef llvm::iterator_range < base_class_const_iterator > | base_class_const_range |
typedef specific_decl_iterator < CXXMethodDecl > | method_iterator |
typedef llvm::iterator_range < specific_decl_iterator < CXXMethodDecl > > | method_range |
typedef specific_decl_iterator < CXXConstructorDecl > | ctor_iterator |
Iterator access to constructor members. | |
typedef llvm::iterator_range < specific_decl_iterator < CXXConstructorDecl > > | ctor_range |
typedef llvm::iterator_range < friend_iterator > | friend_range |
typedef const LambdaCapture * | capture_const_iterator |
typedef llvm::iterator_range < capture_const_iterator > | capture_const_range |
typedef UnresolvedSetIterator | conversion_iterator |
typedef bool | ForallBasesCallback (const CXXRecordDecl *BaseDefinition, void *UserData) |
Function type used by forallBases() as a callback. | |
typedef bool | BaseMatchesCallback (const CXXBaseSpecifier *Specifier, CXXBasePath &Path, void *UserData) |
Function type used by lookupInBases() to determine whether a specific base class subobject matches the lookup criteria. | |
Public Member Functions | |
CXXRecordDecl * | getCanonicalDecl () override |
Retrieves the "canonical" declaration of the given declaration. | |
virtual const CXXRecordDecl * | getCanonicalDecl () const |
CXXRecordDecl * | getPreviousDecl () |
Return the previous declaration of this declaration or NULL if this is the first declaration. | |
const CXXRecordDecl * | getPreviousDecl () const |
CXXRecordDecl * | getMostRecentDecl () |
Returns the most recent (re)declaration of this declaration. | |
const CXXRecordDecl * | getMostRecentDecl () const |
Returns the most recent (re)declaration of this declaration. | |
CXXRecordDecl * | getDefinition () const |
bool | hasDefinition () const |
bool | isDynamicClass () const |
void | setIsParsingBaseSpecifiers () |
bool | isParsingBaseSpecifiers () const |
void | setBases (CXXBaseSpecifier const *const *Bases, unsigned NumBases) |
Sets the base classes of this struct or class. | |
unsigned | getNumBases () const |
Retrieves the number of base classes of this class. | |
base_class_range | bases () |
base_class_const_range | bases () const |
base_class_iterator | bases_begin () |
base_class_const_iterator | bases_begin () const |
base_class_iterator | bases_end () |
base_class_const_iterator | bases_end () const |
unsigned | getNumVBases () const |
Retrieves the number of virtual base classes of this class. | |
base_class_range | vbases () |
base_class_const_range | vbases () const |
base_class_iterator | vbases_begin () |
base_class_const_iterator | vbases_begin () const |
base_class_iterator | vbases_end () |
base_class_const_iterator | vbases_end () const |
bool | hasAnyDependentBases () const |
Determine whether this class has any dependent base classes which are not the current instantiation. | |
method_range | methods () const |
method_iterator | method_begin () const |
Method begin iterator. Iterates in the order the methods were declared. | |
method_iterator | method_end () const |
Method past-the-end iterator. | |
ctor_range | ctors () const |
ctor_iterator | ctor_begin () const |
ctor_iterator | ctor_end () const |
friend_range | friends () const |
friend_iterator | friend_begin () const |
friend_iterator | friend_end () const |
void | pushFriendDecl (FriendDecl *FD) |
bool | hasFriends () const |
Determines whether this record has any friends. | |
bool | hasSimpleMoveConstructor () const |
true if we know for sure that this class has a single, accessible, unambiguous move constructor that is not deleted. | |
bool | hasSimpleMoveAssignment () const |
true if we know for sure that this class has a single, accessible, unambiguous move assignment operator that is not deleted. | |
bool | hasSimpleDestructor () const |
true if we know for sure that this class has an accessible destructor that is not deleted. | |
bool | hasDefaultConstructor () const |
Determine whether this class has any default constructors. | |
bool | needsImplicitDefaultConstructor () const |
Determine if we need to declare a default constructor for this class. | |
bool | hasUserDeclaredConstructor () const |
Determine whether this class has any user-declared constructors. | |
bool | hasUserProvidedDefaultConstructor () const |
Whether this class has a user-provided default constructor per C++11. | |
bool | hasUserDeclaredCopyConstructor () const |
Determine whether this class has a user-declared copy constructor. | |
bool | needsImplicitCopyConstructor () const |
Determine whether this class needs an implicit copy constructor to be lazily declared. | |
bool | needsOverloadResolutionForCopyConstructor () const |
Determine whether we need to eagerly declare a defaulted copy constructor for this class. | |
bool | implicitCopyConstructorHasConstParam () const |
Determine whether an implicit copy constructor for this type would have a parameter with a const-qualified reference type. | |
bool | hasCopyConstructorWithConstParam () const |
Determine whether this class has a copy constructor with a parameter type which is a reference to a const-qualified type. | |
bool | hasUserDeclaredMoveOperation () const |
Whether this class has a user-declared move constructor or assignment operator. | |
bool | hasUserDeclaredMoveConstructor () const |
Determine whether this class has had a move constructor declared by the user. | |
bool | hasMoveConstructor () const |
Determine whether this class has a move constructor. | |
void | setImplicitMoveConstructorIsDeleted () |
Set that we attempted to declare an implicitly move constructor, but overload resolution failed so we deleted it. | |
bool | needsImplicitMoveConstructor () const |
Determine whether this class should get an implicit move constructor or if any existing special member function inhibits this. | |
bool | needsOverloadResolutionForMoveConstructor () const |
Determine whether we need to eagerly declare a defaulted move constructor for this class. | |
bool | hasUserDeclaredCopyAssignment () const |
Determine whether this class has a user-declared copy assignment operator. | |
bool | needsImplicitCopyAssignment () const |
Determine whether this class needs an implicit copy assignment operator to be lazily declared. | |
bool | needsOverloadResolutionForCopyAssignment () const |
Determine whether we need to eagerly declare a defaulted copy assignment operator for this class. | |
bool | implicitCopyAssignmentHasConstParam () const |
Determine whether an implicit copy assignment operator for this type would have a parameter with a const-qualified reference type. | |
bool | hasCopyAssignmentWithConstParam () const |
Determine whether this class has a copy assignment operator with a parameter type which is a reference to a const-qualified type or is not a reference. | |
bool | hasUserDeclaredMoveAssignment () const |
Determine whether this class has had a move assignment declared by the user. | |
bool | hasMoveAssignment () const |
Determine whether this class has a move assignment operator. | |
void | setImplicitMoveAssignmentIsDeleted () |
Set that we attempted to declare an implicit move assignment operator, but overload resolution failed so we deleted it. | |
bool | needsImplicitMoveAssignment () const |
Determine whether this class should get an implicit move assignment operator or if any existing special member function inhibits this. | |
bool | needsOverloadResolutionForMoveAssignment () const |
Determine whether we need to eagerly declare a move assignment operator for this class. | |
bool | hasUserDeclaredDestructor () const |
Determine whether this class has a user-declared destructor. | |
bool | needsImplicitDestructor () const |
Determine whether this class needs an implicit destructor to be lazily declared. | |
bool | needsOverloadResolutionForDestructor () const |
Determine whether we need to eagerly declare a destructor for this class. | |
bool | isLambda () const |
Determine whether this class describes a lambda function object. | |
bool | isGenericLambda () const |
Determine whether this class describes a generic lambda function object (i.e. function call operator is a template). | |
CXXMethodDecl * | getLambdaCallOperator () const |
Retrieve the lambda call operator of the closure type if this is a closure type. | |
CXXMethodDecl * | getLambdaStaticInvoker () const |
Retrieve the lambda static invoker, the address of which is returned by the conversion operator, and the body of which is forwarded to the lambda call operator. | |
TemplateParameterList * | getGenericLambdaTemplateParameterList () const |
Retrieve the generic lambda's template parameter list. Returns null if the class does not represent a lambda or a generic lambda. | |
LambdaCaptureDefault | getLambdaCaptureDefault () const |
void | getCaptureFields (llvm::DenseMap< const VarDecl *, FieldDecl * > &Captures, FieldDecl *&ThisCapture) const |
For a closure type, retrieve the mapping from captured variables and this to the non-static data members that store the values or references of the captures. | |
capture_const_range | captures () const |
capture_const_iterator | captures_begin () const |
capture_const_iterator | captures_end () const |
conversion_iterator | conversion_begin () const |
conversion_iterator | conversion_end () const |
void | removeConversion (const NamedDecl *Old) |
std::pair< conversion_iterator, conversion_iterator > | getVisibleConversionFunctions () |
Get all conversion functions visible in current class, including conversion function templates. | |
bool | isAggregate () const |
bool | hasInClassInitializer () const |
Whether this class has any in-class initializers for non-static data members (including those in anonymous unions or structs). | |
bool | hasUninitializedReferenceMember () const |
Whether this class or any of its subobjects has any members of reference type which would make value-initialization ill-formed. | |
bool | isPOD () const |
Whether this class is a POD-type (C++ [class]p4) | |
bool | isCLike () const |
True if this class is C-like, without C++-specific features, e.g. it contains only public fields, no bases, tag kind is not 'class', etc. | |
bool | isEmpty () const |
Determine whether this is an empty class in the sense of (C++11 [meta.unary.prop]). | |
bool | isPolymorphic () const |
bool | isAbstract () const |
Determine whether this class has a pure virtual function. | |
bool | isStandardLayout () const |
Determine whether this class has standard layout per (C++ [class]p7) | |
bool | hasMutableFields () const |
Determine whether this class, or any of its class subobjects, contains a mutable field. | |
bool | hasVariantMembers () const |
Determine whether this class has any variant members. | |
bool | hasTrivialDefaultConstructor () const |
Determine whether this class has a trivial default constructor (C++11 [class.ctor]p5). | |
bool | hasNonTrivialDefaultConstructor () const |
Determine whether this class has a non-trivial default constructor (C++11 [class.ctor]p5). | |
bool | hasConstexprNonCopyMoveConstructor () const |
Determine whether this class has at least one constexpr constructor other than the copy or move constructors. | |
bool | defaultedDefaultConstructorIsConstexpr () const |
Determine whether a defaulted default constructor for this class would be constexpr. | |
bool | hasConstexprDefaultConstructor () const |
Determine whether this class has a constexpr default constructor. | |
bool | hasTrivialCopyConstructor () const |
Determine whether this class has a trivial copy constructor (C++ [class.copy]p6, C++11 [class.copy]p12) | |
bool | hasNonTrivialCopyConstructor () const |
Determine whether this class has a non-trivial copy constructor (C++ [class.copy]p6, C++11 [class.copy]p12) | |
bool | hasTrivialMoveConstructor () const |
Determine whether this class has a trivial move constructor (C++11 [class.copy]p12) | |
bool | hasNonTrivialMoveConstructor () const |
Determine whether this class has a non-trivial move constructor (C++11 [class.copy]p12) | |
bool | hasTrivialCopyAssignment () const |
Determine whether this class has a trivial copy assignment operator (C++ [class.copy]p11, C++11 [class.copy]p25) | |
bool | hasNonTrivialCopyAssignment () const |
Determine whether this class has a non-trivial copy assignment operator (C++ [class.copy]p11, C++11 [class.copy]p25) | |
bool | hasTrivialMoveAssignment () const |
Determine whether this class has a trivial move assignment operator (C++11 [class.copy]p25) | |
bool | hasNonTrivialMoveAssignment () const |
Determine whether this class has a non-trivial move assignment operator (C++11 [class.copy]p25) | |
bool | hasTrivialDestructor () const |
Determine whether this class has a trivial destructor (C++ [class.dtor]p3) | |
bool | hasNonTrivialDestructor () const |
Determine whether this class has a non-trivial destructor (C++ [class.dtor]p3) | |
bool | hasIrrelevantDestructor () const |
Determine whether this class has a destructor which has no semantic effect. | |
bool | hasNonLiteralTypeFieldsOrBases () const |
Determine whether this class has a non-literal or/ volatile type non-static data member or base class. | |
bool | isTriviallyCopyable () const |
Determine whether this class is considered trivially copyable per (C++11 [class]p6). | |
bool | isTrivial () const |
Determine whether this class is considered trivial. | |
bool | isLiteral () const |
Determine whether this class is a literal type. | |
CXXRecordDecl * | getInstantiatedFromMemberClass () const |
If this record is an instantiation of a member class, retrieves the member class from which it was instantiated. | |
MemberSpecializationInfo * | getMemberSpecializationInfo () const |
If this class is an instantiation of a member class of a class template specialization, retrieves the member specialization information. | |
void | setInstantiationOfMemberClass (CXXRecordDecl *RD, TemplateSpecializationKind TSK) |
Specify that this record is an instantiation of the member class RD . | |
ClassTemplateDecl * | getDescribedClassTemplate () const |
Retrieves the class template that is described by this class declaration. | |
void | setDescribedClassTemplate (ClassTemplateDecl *Template) |
TemplateSpecializationKind | getTemplateSpecializationKind () const |
Determine whether this particular class is a specialization or instantiation of a class template or member class of a class template, and how it was instantiated or specialized. | |
void | setTemplateSpecializationKind (TemplateSpecializationKind TSK) |
Set the kind of specialization or template instantiation this is. | |
const CXXRecordDecl * | getTemplateInstantiationPattern () const |
Retrieve the record declaration from which this record could be instantiated. Returns null if this class is not a template instantiation. | |
CXXRecordDecl * | getTemplateInstantiationPattern () |
CXXDestructorDecl * | getDestructor () const |
Returns the destructor decl for this class. | |
const FunctionDecl * | isLocalClass () const |
If the class is a local class [class.local], returns the enclosing function declaration. | |
FunctionDecl * | isLocalClass () |
bool | isCurrentInstantiation (const DeclContext *CurContext) const |
Determine whether this dependent class is a current instantiation, when viewed from within the given context. | |
bool | isDerivedFrom (const CXXRecordDecl *Base) const |
Determine whether this class is derived from the class Base . | |
bool | isDerivedFrom (const CXXRecordDecl *Base, CXXBasePaths &Paths) const |
Determine whether this class is derived from the type Base . | |
bool | isVirtuallyDerivedFrom (const CXXRecordDecl *Base) const |
Determine whether this class is virtually derived from the class Base . | |
bool | isProvablyNotDerivedFrom (const CXXRecordDecl *Base) const |
Determine whether this class is provably not derived from the type Base . | |
bool | forallBases (ForallBasesCallback *BaseMatches, void *UserData, bool AllowShortCircuit=true) const |
Determines if the given callback holds for all the direct or indirect base classes of this type. | |
bool | lookupInBases (BaseMatchesCallback *BaseMatches, void *UserData, CXXBasePaths &Paths) const |
Look for entities within the base classes of this C++ class, transitively searching all base class subobjects. | |
void | getFinalOverriders (CXXFinalOverriderMap &FinaOverriders) const |
Retrieve the final overriders for each virtual member function in the class hierarchy where this class is the most-derived class in the class hierarchy. | |
void | getIndirectPrimaryBases (CXXIndirectPrimaryBaseSet &Bases) const |
Get the indirect primary bases for this class. | |
void | viewInheritance (ASTContext &Context) const |
void | finishedDefaultedOrDeletedMember (CXXMethodDecl *MD) |
Indicates that the declaration of a defaulted or deleted special member function is now complete. | |
void | completeDefinition () override |
Indicates that the definition of this class is now complete. | |
void | completeDefinition (CXXFinalOverriderMap *FinalOverriders) |
Indicates that the definition of this class is now complete, and provides a final overrider map to help determine. | |
bool | mayBeAbstract () const |
Determine whether this class may end up being abstract, even though it is not yet known to be abstract. | |
unsigned | getLambdaManglingNumber () const |
If this is the closure type of a lambda expression, retrieve the number to be used for name mangling in the Itanium C++ ABI. | |
Decl * | getLambdaContextDecl () const |
Retrieve the declaration that provides additional context for a lambda, when the normal declaration context is not specific enough. | |
void | setLambdaMangling (unsigned ManglingNumber, Decl *ContextDecl) |
Set the mangling number and context declaration for a lambda class. | |
MSInheritanceAttr::Spelling | getMSInheritanceModel () const |
Returns the inheritance model used for this record. | |
MSInheritanceAttr::Spelling | calculateInheritanceModel () const |
Calculate what the inheritance model would be for this class. | |
bool | nullFieldOffsetIsZero () const |
MSVtorDispAttr::Mode | getMSVtorDispMode () const |
Controls when vtordisps will be emitted if this record is used as a virtual base. | |
bool | isDependentLambda () const |
Determine whether this lambda expression was known to be dependent at the time it was created, even if its context does not appear to be dependent. | |
TypeSourceInfo * | getLambdaTypeInfo () const |
Static Public Member Functions | |
static CXXRecordDecl * | Create (const ASTContext &C, TagKind TK, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, CXXRecordDecl *PrevDecl=nullptr, bool DelayTypeCreation=false) |
static CXXRecordDecl * | CreateLambda (const ASTContext &C, DeclContext *DC, TypeSourceInfo *Info, SourceLocation Loc, bool DependentLambda, bool IsGeneric, LambdaCaptureDefault CaptureDefault) |
static CXXRecordDecl * | CreateDeserialized (const ASTContext &C, unsigned ID) |
static bool | FindBaseClass (const CXXBaseSpecifier *Specifier, CXXBasePath &Path, void *BaseRecord) |
Base-class lookup callback that determines whether the given base class specifier refers to a specific class declaration. | |
static bool | FindVirtualBaseClass (const CXXBaseSpecifier *Specifier, CXXBasePath &Path, void *BaseRecord) |
Base-class lookup callback that determines whether the given base class specifier refers to a specific class declaration and describes virtual derivation. | |
static bool | FindTagMember (const CXXBaseSpecifier *Specifier, CXXBasePath &Path, void *Name) |
Base-class lookup callback that determines whether there exists a tag with the given name. | |
static bool | FindOrdinaryMember (const CXXBaseSpecifier *Specifier, CXXBasePath &Path, void *Name) |
Base-class lookup callback that determines whether there exists a member with the given name. | |
static bool | FindNestedNameSpecifierMember (const CXXBaseSpecifier *Specifier, CXXBasePath &Path, void *UserData) |
Base-class lookup callback that determines whether there exists a member with the given name that can be used in a nested-name-specifier. | |
static AccessSpecifier | MergeAccess (AccessSpecifier PathAccess, AccessSpecifier DeclAccess) |
Calculates the access of a decl that is reached along a path. | |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
Protected Member Functions | |
CXXRecordDecl (Kind K, TagKind TK, const ASTContext &C, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, CXXRecordDecl *PrevDecl) | |
Friends | |
class | LazyDefinitionDataPtr< CXXRecordDecl, struct DefinitionData > |
class | DeclContext |
class | LambdaExpr |
class | ASTNodeImporter |
class | ASTDeclReader |
class | ASTDeclWriter |
class | ASTReader |
class | ASTWriter |
void | TagDecl::startDefinition () |
void | FunctionDecl::setPure (bool) |
typedef const CXXBaseSpecifier* clang::CXXRecordDecl::base_class_const_iterator |
typedef llvm::iterator_range<base_class_const_iterator> clang::CXXRecordDecl::base_class_const_range |
typedef llvm::iterator_range<base_class_iterator> clang::CXXRecordDecl::base_class_range |
typedef bool clang::CXXRecordDecl::BaseMatchesCallback(const CXXBaseSpecifier *Specifier, CXXBasePath &Path, void *UserData) |
Function type used by lookupInBases() to determine whether a specific base class subobject matches the lookup criteria.
Specifier | the base-class specifier that describes the inheritance from the base class we are trying to match. |
Path | the current path, from the most-derived class down to the base named by the Specifier . |
UserData | a single pointer to user-specified data, provided to lookupInBases(). |
typedef const LambdaCapture* clang::CXXRecordDecl::capture_const_iterator |
typedef llvm::iterator_range<capture_const_iterator> clang::CXXRecordDecl::capture_const_range |
typedef llvm::iterator_range<specific_decl_iterator<CXXConstructorDecl> > clang::CXXRecordDecl::ctor_range |
typedef bool clang::CXXRecordDecl::ForallBasesCallback(const CXXRecordDecl *BaseDefinition, void *UserData) |
Function type used by forallBases() as a callback.
BaseDefinition | the definition of the base class |
typedef llvm::iterator_range<friend_iterator> clang::CXXRecordDecl::friend_range |
typedef llvm::iterator_range<specific_decl_iterator<CXXMethodDecl> > clang::CXXRecordDecl::method_range |
CXXRecordDecl::CXXRecordDecl | ( | Kind | K, |
TagKind | TK, | ||
const ASTContext & | C, | ||
DeclContext * | DC, | ||
SourceLocation | StartLoc, | ||
SourceLocation | IdLoc, | ||
IdentifierInfo * | Id, | ||
CXXRecordDecl * | PrevDecl | ||
) | [protected] |
Definition at line 86 of file DeclCXX.cpp.
Referenced by Create(), CreateDeserialized(), and CreateLambda().
base_class_range clang::CXXRecordDecl::bases | ( | ) | [inline] |
Definition at line 713 of file DeclCXX.h.
References bases_begin(), and bases_end().
Referenced by addAssociatedClassesAndNamespaces(), AddIndirectPrimaryBases(), checkMoveAssignmentForRepeatedMove(), clang::Sema::CodeCompleteConstructorInitializer(), CollectVisibleConversions(), clang::Sema::ComputeDefaultedCopyAssignmentExceptionSpec(), clang::Sema::ComputeDefaultedCopyCtorExceptionSpec(), clang::Sema::ComputeDefaultedDefaultCtorExceptionSpec(), clang::Sema::ComputeDefaultedDtorExceptionSpec(), clang::Sema::ComputeDefaultedMoveAssignmentExceptionSpec(), clang::Sema::ComputeDefaultedMoveCtorExceptionSpec(), clang::Sema::ComputeInheritingCtorExceptionSpec(), ComputeVMIClassTypeInfoFlags(), clang::Sema::DeclareInheritingConstructors(), DeduceTemplateArgumentsByTypeMatch(), defaultedSpecialMemberIsConstexpr(), clang::Sema::DefineImplicitCopyAssignment(), clang::Sema::DefineImplicitMoveAssignment(), DiagnoseBaseOrMemInitializerOrder(), DiagnoseUninitializedReference(), diagnoseUnreadableFields(), DumpCXXRecordLayout(), EmitNullConstant(), clang::CodeGen::CodeGenFunction::EnterDtorCleanups(), FindBaseInitializer(), findCircularInheritance(), findDirectBaseWithType(), forallBases(), clang::CXXMethodDecl::getCorrespondingMethodInClass(), getIndirectPrimaryBases(), HasTrivialDestructorBody(), clang::ASTNodeImporter::ImportDefinition(), clang::Sema::inferCUDATargetForImplicitSpecialMember(), clang::CodeGen::CodeGenFunction::InitializeVTablePointers(), clang::NestedNameSpecifier::isDependent(), IsDerivedFromInclusive(), isDirectVBase(), isImmediateBase(), clang::Sema::isMicrosoftMissingTypename(), IsPartOfAST(), isReadByLvalueToRvalueConversion(), isValidBaseClass(), clang::Sema::LookupInSuper(), clang::Sema::MarkBaseAndMemberDestructorsReferenced(), clang::Sema::MarkVirtualMembersReferenced(), mayBeAbstract(), recoverFromTypeInKnownDependentBase(), clang::Sema::RequireLiteralType(), RequiresVtordisp(), serializeClassHierarchy(), clang::Sema::SetCtorInitializers(), clang::Sema::ShouldDeleteSpecialMember(), clang::Sema::SubstBaseSpecifiers(), clang::CodeGen::CodeGenModule::TryEmitBaseDestructorAsAlias(), and clang::InheritanceHierarchyWriter::WriteNode().
base_class_const_range clang::CXXRecordDecl::bases | ( | ) | const [inline] |
Definition at line 716 of file DeclCXX.h.
References bases_begin(), and bases_end().
base_class_iterator clang::CXXRecordDecl::bases_begin | ( | ) | [inline] |
Definition at line 720 of file DeclCXX.h.
References data().
Referenced by addAssociatedClassesAndNamespaces(), bases(), bases_end(), CanUseSingleInheritance(), findPathForVPtr(), getBaseIndex(), getVisibleConversionFunctions(), HandleConstructorCall(), clang::APValue::printPretty(), and usesMultipleInheritanceModel().
base_class_const_iterator clang::CXXRecordDecl::bases_begin | ( | ) | const [inline] |
base_class_iterator clang::CXXRecordDecl::bases_end | ( | ) | [inline] |
Definition at line 722 of file DeclCXX.h.
References bases_begin(), and data().
Referenced by addAssociatedClassesAndNamespaces(), bases(), findPathForVPtr(), getBaseIndex(), getVisibleConversionFunctions(), and clang::APValue::printPretty().
base_class_const_iterator clang::CXXRecordDecl::bases_end | ( | ) | const [inline] |
Definition at line 723 of file DeclCXX.h.
References bases_begin(), and data().
MSInheritanceAttr::Spelling CXXRecordDecl::calculateInheritanceModel | ( | ) | const |
Calculate what the inheritance model would be for this class.
Definition at line 116 of file AST/MicrosoftCXXABI.cpp.
References getNumVBases(), hasDefinition(), isParsingBaseSpecifiers(), and usesMultipleInheritanceModel().
Referenced by assignInheritanceModel(), and clang::Sema::checkMSInheritanceAttrOnDefinition().
capture_const_range clang::CXXRecordDecl::captures | ( | ) | const [inline] |
Definition at line 1066 of file DeclCXX.h.
References captures_begin(), and captures_end().
Referenced by RebuildLambdaScopeInfo().
capture_const_iterator clang::CXXRecordDecl::captures_begin | ( | ) | const [inline] |
Definition at line 1069 of file DeclCXX.h.
References isLambda().
Referenced by captures(), and captures_end().
capture_const_iterator clang::CXXRecordDecl::captures_end | ( | ) | const [inline] |
Definition at line 1072 of file DeclCXX.h.
References captures_begin(), and isLambda().
Referenced by captures().
static bool clang::CXXRecordDecl::classof | ( | const Decl * | D | ) | [inline, static] |
Reimplemented from clang::TagDecl.
Reimplemented in clang::ClassTemplatePartialSpecializationDecl, and clang::ClassTemplateSpecializationDecl.
Definition at line 1695 of file DeclCXX.h.
References classofKind(), and clang::Decl::getKind().
static bool clang::CXXRecordDecl::classofKind | ( | Kind | K | ) | [inline, static] |
Reimplemented from clang::TagDecl.
Reimplemented in clang::ClassTemplatePartialSpecializationDecl, and clang::ClassTemplateSpecializationDecl.
Definition at line 1696 of file DeclCXX.h.
Referenced by classof(), clang::ASTDeclWriter::VisitEnumDecl(), and clang::ASTDeclWriter::VisitRecordDecl().
void CXXRecordDecl::completeDefinition | ( | ) | [override] |
Indicates that the definition of this class is now complete.
Reimplemented from clang::TagDecl.
Definition at line 1318 of file DeclCXX.cpp.
Referenced by completeDefinition().
void CXXRecordDecl::completeDefinition | ( | CXXFinalOverriderMap * | FinalOverriders | ) |
Indicates that the definition of this class is now complete, and provides a final overrider map to help determine.
FinalOverriders | The final overrider map for this class, which can be provided as an optimization for abstract-class checking. If NULL, final overriders will be computed if they are needed to complete the definition. |
Definition at line 1322 of file DeclCXX.cpp.
References completeDefinition(), conversion_begin(), conversion_end(), data(), getFinalOverriders(), and mayBeAbstract().
conversion_iterator clang::CXXRecordDecl::conversion_begin | ( | ) | const [inline] |
Definition at line 1078 of file DeclCXX.h.
References data(), and clang::Decl::getASTContext().
Referenced by CollectVisibleConversions(), completeDefinition(), and LookupDirect().
conversion_iterator clang::CXXRecordDecl::conversion_end | ( | ) | const [inline] |
Definition at line 1081 of file DeclCXX.h.
References data(), and clang::Decl::getASTContext().
Referenced by CollectVisibleConversions(), completeDefinition(), and LookupDirect().
CXXRecordDecl * CXXRecordDecl::Create | ( | const ASTContext & | C, |
TagKind | TK, | ||
DeclContext * | DC, | ||
SourceLocation | StartLoc, | ||
SourceLocation | IdLoc, | ||
IdentifierInfo * | Id, | ||
CXXRecordDecl * | PrevDecl = nullptr , |
||
bool | DelayTypeCreation = false |
||
) | [static] |
Definition at line 95 of file DeclCXX.cpp.
References AttributeLangSupport::C, CXXRecordDecl(), clang::ASTContext::getLangOpts(), clang::ASTContext::getTypeDeclType(), and clang::TagDecl::MayHaveOutOfDateDef.
Referenced by clang::Sema::ActOnStartCXXMemberDeclarations(), clang::Sema::ActOnTag(), clang::ASTContext::buildImplicitRecord(), clang::Sema::CheckClassTemplate(), clang::Sema::CreateCapturedStmtRecordDecl(), clang::Sema::DeclareGlobalNewDelete(), clang::ASTNodeImporter::VisitClassTemplateDecl(), and clang::ASTNodeImporter::VisitRecordDecl().
CXXRecordDecl * CXXRecordDecl::CreateDeserialized | ( | const ASTContext & | C, |
unsigned | ID | ||
) | [static] |
Reimplemented from clang::RecordDecl.
Definition at line 129 of file DeclCXX.cpp.
References AttributeLangSupport::C, CXXRecordDecl(), clang::TagDecl::MayHaveOutOfDateDef, and clang::TTK_Struct.
CXXRecordDecl * CXXRecordDecl::CreateLambda | ( | const ASTContext & | C, |
DeclContext * | DC, | ||
TypeSourceInfo * | Info, | ||
SourceLocation | Loc, | ||
bool | DependentLambda, | ||
bool | IsGeneric, | ||
LambdaCaptureDefault | CaptureDefault | ||
) | [static] |
Definition at line 111 of file DeclCXX.cpp.
References AttributeLangSupport::C, CXXRecordDecl(), clang::ASTContext::getTypeDeclType(), clang::TagDecl::IsBeingDefined, clang::TagDecl::MayHaveOutOfDateDef, clang::Decl::setImplicit(), and clang::TTK_Class.
Referenced by clang::Sema::createLambdaClosureType().
ctor_iterator clang::CXXRecordDecl::ctor_begin | ( | ) | const [inline] |
Definition at line 776 of file DeclCXX.h.
References clang::DeclContext::decls_begin().
Referenced by ctors().
ctor_iterator clang::CXXRecordDecl::ctor_end | ( | ) | const [inline] |
Definition at line 779 of file DeclCXX.h.
References clang::DeclContext::decls_end().
Referenced by ctors().
ctor_range clang::CXXRecordDecl::ctors | ( | ) | const [inline] |
Definition at line 774 of file DeclCXX.h.
References ctor_begin(), and ctor_end().
Referenced by clang::CodeGen::CGCXXABI::canCopyArgument(), findTrivialSpecialMember(), findUserDeclaredCtor(), and clang::Sema::ShouldDeleteSpecialMember().
bool clang::CXXRecordDecl::defaultedDefaultConstructorIsConstexpr | ( | ) | const [inline] |
Determine whether a defaulted default constructor for this class would be constexpr.
Definition at line 1190 of file DeclCXX.h.
References data(), hasInClassInitializer(), hasVariantMembers(), and clang::TagDecl::isUnion().
Referenced by defaultedSpecialMemberIsConstexpr(), hasConstexprDefaultConstructor(), and hasConstexprNonCopyMoveConstructor().
bool CXXRecordDecl::FindBaseClass | ( | const CXXBaseSpecifier * | Specifier, |
CXXBasePath & | Path, | ||
void * | BaseRecord | ||
) | [static] |
Base-class lookup callback that determines whether the given base class specifier refers to a specific class declaration.
This callback can be used with lookupInBases()
to determine whether a given derived class has is a base class subobject of a particular type. The user data pointer should refer to the canonical CXXRecordDecl of the base class that we are searching for.
Definition at line 366 of file CXXInheritance.cpp.
References clang::Type::castAs(), getCanonicalDecl(), and clang::CXXBaseSpecifier::getType().
Referenced by isDerivedFrom().
bool CXXRecordDecl::FindNestedNameSpecifierMember | ( | const CXXBaseSpecifier * | Specifier, |
CXXBasePath & | Path, | ||
void * | UserData | ||
) | [static] |
Base-class lookup callback that determines whether there exists a member with the given name that can be used in a nested-name-specifier.
This callback can be used with lookupInBases()
to find membes of the given name within a C++ class hierarchy that can occur within nested-name-specifiers.
Definition at line 421 of file CXXInheritance.cpp.
References clang::Type::castAs(), clang::CXXBasePath::Decls, clang::DeclarationName::getFromOpaquePtr(), clang::CXXBaseSpecifier::getType(), clang::Decl::IDNS_Tag, and clang::DeclContext::lookup().
Referenced by clang::Sema::LookupQualifiedName().
bool CXXRecordDecl::FindOrdinaryMember | ( | const CXXBaseSpecifier * | Specifier, |
CXXBasePath & | Path, | ||
void * | Name | ||
) | [static] |
Base-class lookup callback that determines whether there exists a member with the given name.
This callback can be used with lookupInBases()
to find members of the given name within a C++ class hierarchy. The user data pointer is an opaque DeclarationName
pointer.
Definition at line 402 of file CXXInheritance.cpp.
References clang::Type::castAs(), clang::CXXBasePath::Decls, clang::DeclarationName::getFromOpaquePtr(), clang::CXXBaseSpecifier::getType(), clang::Decl::IDNS_Member, clang::Decl::IDNS_Ordinary, clang::Decl::IDNS_Tag, and clang::DeclContext::lookup().
Referenced by hasMember(), and clang::Sema::LookupQualifiedName().
bool CXXRecordDecl::FindTagMember | ( | const CXXBaseSpecifier * | Specifier, |
CXXBasePath & | Path, | ||
void * | Name | ||
) | [static] |
Base-class lookup callback that determines whether there exists a tag with the given name.
This callback can be used with lookupInBases()
to find tag members of the given name within a C++ class hierarchy. The user data pointer is an opaque DeclarationName
pointer.
Definition at line 385 of file CXXInheritance.cpp.
References clang::Type::castAs(), clang::CXXBasePath::Decls, clang::DeclarationName::getFromOpaquePtr(), clang::CXXBaseSpecifier::getType(), clang::Decl::IDNS_Tag, and clang::DeclContext::lookup().
Referenced by clang::Sema::LookupQualifiedName().
bool CXXRecordDecl::FindVirtualBaseClass | ( | const CXXBaseSpecifier * | Specifier, |
CXXBasePath & | Path, | ||
void * | BaseRecord | ||
) | [static] |
Base-class lookup callback that determines whether the given base class specifier refers to a specific class declaration and describes virtual derivation.
This callback can be used with lookupInBases()
to determine whether a given derived class has is a virtual base class subobject of a particular type. The user data pointer should refer to the canonical CXXRecordDecl of the base class that we are searching for.
Definition at line 375 of file CXXInheritance.cpp.
References clang::Type::castAs(), getCanonicalDecl(), clang::CXXBaseSpecifier::getType(), and clang::CXXBaseSpecifier::isVirtual().
Referenced by isVirtuallyDerivedFrom().
Indicates that the declaration of a defaulted or deleted special member function is now complete.
Definition at line 939 of file DeclCXX.cpp.
References clang::AS_public, data(), clang::Decl::getAccess(), clang::CXXMethodDecl::isCopyAssignmentOperator(), clang::FunctionDecl::isDeleted(), clang::Decl::isImplicit(), clang::CXXMethodDecl::isMoveAssignmentOperator(), clang::FunctionDecl::isTrivial(), and clang::CXXMethodDecl::isUserProvided().
Referenced by clang::Sema::CheckCompletedCXXClass().
bool CXXRecordDecl::forallBases | ( | ForallBasesCallback * | BaseMatches, |
void * | UserData, | ||
bool | AllowShortCircuit = true |
||
) | const |
Determines if the given callback holds for all the direct or indirect base classes of this type.
The class itself does not count as a base class. This routine returns false if the class has non-computable base classes.
BaseMatches | Callback invoked for each (direct or indirect) base class of this type, or if AllowShortCircuit is true then until a call returns false. |
UserData | Passed as the second argument of every call to BaseMatches . |
AllowShortCircuit | if false, forces the callback to be called for every base class, even if a dependent or non-matching base was found. |
Definition at line 132 of file CXXInheritance.cpp.
References bases(), clang::Type::getAs(), clang::RecordType::getDecl(), clang::RecordDecl::getDefinition(), isCurrentInstantiation(), clang::DeclContext::isDependentContext(), and Record.
Referenced by clang::Sema::CheckUsingDeclQualifier(), hasAnyDependentBases(), isProvablyNotDerivedFrom(), and isProvablyNotDerivedFrom().
CXXRecordDecl::friend_iterator clang::CXXRecordDecl::friend_begin | ( | ) | const [inline] |
Definition at line 227 of file DeclFriend.h.
Referenced by friends(), and IsRecordFullyDefined().
CXXRecordDecl::friend_iterator clang::CXXRecordDecl::friend_end | ( | ) | const [inline] |
Definition at line 231 of file DeclFriend.h.
Referenced by friends(), and IsRecordFullyDefined().
CXXRecordDecl::friend_range clang::CXXRecordDecl::friends | ( | ) | const [inline] |
Definition at line 235 of file DeclFriend.h.
References friend_begin(), and friend_end().
Referenced by GetFriendKind().
CXXRecordDecl* clang::CXXRecordDecl::getCanonicalDecl | ( | ) | [inline, override, virtual] |
Retrieves the "canonical" declaration of the given declaration.
Reimplemented from clang::TagDecl.
Definition at line 651 of file DeclCXX.h.
Referenced by BaseIsNot(), BaseIsNotInSet(), BuildImplicitBaseInitializer(), clang::Sema::CheckBaseSpecifier(), checkMoveAssignmentForRepeatedMove(), clang::Sema::CheckQualifiedMemberReference(), ClassifyImplicitMemberAccess(), clang::Sema::DefineUsedVTables(), DiagnoseAccessPath(), FindBaseClass(), FindBestPath(), findCircularInheritance(), clang::ClassTemplateDecl::findPartialSpecInstantiatedFromMember(), FindVirtualBaseClass(), getBaseIndex(), getCanonicalDecl(), clang::CXXMethodDecl::getCorrespondingMethodInClass(), GetProtectedFriendKind(), HandleBaseToDerivedCast(), HandleMemberPointerAccess(), HasAccess(), clang::Sema::InstantiateClassTemplateSpecialization(), isDerivedFrom(), IsDerivedFromInclusive(), isInstantiationOf(), isProvablyNotDerivedFrom(), isValidBaseClass(), isVirtuallyDerivedFrom(), clang::Sema::MarkVTableUsed(), clang::ASTDeclReader::mergeRedeclarable(), regionMatchesCXXRecordType(), clang::FunctionCallFilterCCC::ValidateCandidate(), and clang::ASTDeclReader::VisitCXXRecordDeclImpl().
virtual const CXXRecordDecl* clang::CXXRecordDecl::getCanonicalDecl | ( | ) | const [inline, virtual] |
Reimplemented from clang::TagDecl.
Definition at line 654 of file DeclCXX.h.
References getCanonicalDecl().
void CXXRecordDecl::getCaptureFields | ( | llvm::DenseMap< const VarDecl *, FieldDecl * > & | Captures, |
FieldDecl *& | ThisCapture | ||
) | const |
For a closure type, retrieve the mapping from captured variables and this
to the non-static data members that store the values or references of the captures.
Captures | Will be populated with the mapping from captured variables to the corresponding fields. |
ThisCapture | Will be set to the field declaration for the this capture. |
Definition at line 1022 of file DeclCXX.cpp.
Referenced by clang::CodeGen::CodeGenFunction::StartFunction().
CXXRecordDecl* clang::CXXRecordDecl::getDefinition | ( | ) | const [inline] |
getDefinition - Returns the RecordDecl that actually defines this struct/union/class. When determining whether or not a struct/union/class is completely defined, one should use this method as opposed to 'isCompleteDefinition'. 'isCompleteDefinition' indicates whether or not a specific RecordDecl is a completed definition, not whether or not the record type is defined. This method returns NULL if there is no RecordDecl that defines the struct/union/tag.
Reimplemented from clang::RecordDecl.
Definition at line 675 of file DeclCXX.h.
References clang::LazyDefinitionDataPtr< Decl, T >::get().
Referenced by clang::Sema::ActOnClassTemplateSpecialization(), clang::Sema::ActOnExplicitInstantiation(), CanDeclareSpecialMemberFunction(), clang::Sema::CheckFieldDecl(), clang::Sema::checkMSInheritanceAttrOnDefinition(), clang::Sema::CheckNontrivialField(), CreateNewFunctionDecl(), CXXRecordMembersNamed(), DiagnoseReinterpretUpDownCast(), findCircularInheritance(), getContainedDynamicClass(), clang::ASTContext::getCurrentKeyFunction(), clang::Sema::InstantiateClass(), clang::Sema::InstantiateClassMembers(), clang::Sema::LookupQualifiedName(), clang::Sema::LookupSpecialMember(), clang::Sema::RequireNonAbstractType(), clang::Sema::SetCtorInitializers(), clang::ASTNodeImporter::VisitClassTemplateDecl(), and clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl().
ClassTemplateDecl* clang::CXXRecordDecl::getDescribedClassTemplate | ( | ) | const [inline] |
Retrieves the class template that is described by this class declaration.
Every class template is represented as a ClassTemplateDecl and a CXXRecordDecl. The former contains template properties (such as the template parameter lists) while the latter contains the actual description of the template's contents. ClassTemplateDecl::getTemplatedDecl() retrieves the CXXRecordDecl that from a ClassTemplateDecl, while getDescribedClassTemplate() retrieves the ClassTemplateDecl from a CXXRecordDecl.
Definition at line 1364 of file DeclCXX.h.
Referenced by clang::Sema::ActOnReenterTemplateScope(), clang::Sema::ActOnStartCXXMemberDeclarations(), checkDLLAttribute(), clang::Sema::CheckTemplateIdType(), clang::Sema::FinalizeDeclaration(), clang::Sema::FindInstantiatedDecl(), MatchesFriend(), clang::Sema::MergeCXXFunctionDecl(), clang::Sema::mergeMSInheritanceAttr(), NeedsInjectedClassNameType(), recoverFromTypeInKnownDependentBase(), clang::ASTNodeImporter::VisitClassTemplateDecl(), and clang::ASTDeclWriter::VisitCXXRecordDecl().
CXXDestructorDecl * CXXRecordDecl::getDestructor | ( | ) | const |
Returns the destructor decl for this class.
Definition at line 1302 of file DeclCXX.cpp.
References clang::ASTContext::DeclarationNames, clang::Decl::getASTContext(), clang::ASTContext::getCanonicalType(), clang::DeclarationNameTable::getCXXDestructorName(), clang::ASTContext::getTypeDeclType(), and clang::DeclContext::lookup().
Referenced by clang::Sema::ActOnCXXDelete(), clang::Sema::ActOnOpenMPLastprivateClause(), clang::Sema::ActOnOpenMPReductionClause(), clang::Sema::canThrow(), clang::Sema::CheckCompletedCXXClass(), clang::CodeGen::CodeGenFunction::emitAutoVarTypeCleanup(), clang::CodeGen::CodeGenFunction::EmitCXXThrowExpr(), EmitDeclDestroy(), EmitObjectDelete(), findTrivialSpecialMember(), clang::CXXMethodDecl::getCorrespondingMethodInClass(), clang::CFGImplicitDtor::getDestructorDecl(), HasTrivialDestructorBody(), clang::Sema::LookupSpecialMember(), clang::Sema::MarkVTableUsed(), clang::ento::ExprEngine::ProcessDeleteDtor(), clang::CodeGen::CodeGenFunction::PushDestructorCleanup(), clang::Sema::RequireLiteralType(), clang::CodeGen::CodeGenModule::TryEmitBaseDestructorAsAlias(), and clang::ento::ExprEngine::VisitCXXDestructor().
void CXXRecordDecl::getFinalOverriders | ( | CXXFinalOverriderMap & | FinaOverriders | ) | const |
Retrieve the final overriders for each virtual member function in the class hierarchy where this class is the most-derived class in the class hierarchy.
Definition at line 626 of file CXXInheritance.cpp.
References clang::Decl::Hidden.
Referenced by completeDefinition(), clang::Sema::DiagnoseAbstractType(), and clang::Sema::MarkVirtualMembersReferenced().
Retrieve the generic lambda's template parameter list. Returns null if the class does not represent a lambda or a generic lambda.
Definition at line 1041 of file DeclCXX.cpp.
References clang::FunctionDecl::getDescribedFunctionTemplate(), getLambdaCallOperator(), and isLambda().
Referenced by clang::LambdaExpr::getTemplateParameterList().
void CXXRecordDecl::getIndirectPrimaryBases | ( | CXXIndirectPrimaryBaseSet & | Bases | ) | const |
Get the indirect primary bases for this class.
Definition at line 709 of file CXXInheritance.cpp.
References AddIndirectPrimaryBases(), bases(), clang::Decl::getASTContext(), and getNumVBases().
If this record is an instantiation of a member class, retrieves the member class from which it was instantiated.
This routine will return non-null for (non-templated) member classes of class templates. For example, given:
template<typename T> struct X { struct A { }; };
The declaration for X<int>::A is a (non-templated) CXXRecordDecl whose parent is the class template specialization X<int>. For this declaration, getInstantiatedFromMemberClass() will return the CXXRecordDecl X<T>::A. When a complete definition of X<int>::A is required, it will be instantiated from the declaration returned by getInstantiatedFromMemberClass().
Definition at line 1220 of file DeclCXX.cpp.
References getMemberSpecializationInfo().
Referenced by clang::Sema::ActOnExplicitInstantiation(), clang::Sema::CheckMemberSpecialization(), getExplicitVisibilityAux(), getTemplateInstantiationPattern(), clang::Sema::InstantiateClass(), and isInstantiationOf().
CXXMethodDecl * CXXRecordDecl::getLambdaCallOperator | ( | ) | const |
Retrieve the lambda call operator of the closure type if this is a closure type.
Definition at line 990 of file DeclCXX.cpp.
References clang::ASTContext::DeclarationNames, clang::Decl::getASTContext(), clang::DeclarationNameTable::getCXXOperatorName(), isLambda(), and clang::DeclContext::lookup().
Referenced by clang::Sema::DefineImplicitLambdaToFunctionPointerConversion(), clang::CodeGen::CodeGenFunction::EmitLambdaBlockInvokeBody(), clang::CodeGen::CodeGenFunction::EmitLambdaDelegatingInvokeBody(), clang::LambdaExpr::getCallOperator(), getGenericLambdaTemplateParameterList(), and SpecializeCorrespondingLambdaCallOperatorAndInvoker().
LambdaCaptureDefault clang::CXXRecordDecl::getLambdaCaptureDefault | ( | ) | const [inline] |
Definition at line 1043 of file DeclCXX.h.
References isLambda().
Referenced by RebuildLambdaScopeInfo().
Decl* clang::CXXRecordDecl::getLambdaContextDecl | ( | ) | const [inline] |
Retrieve the declaration that provides additional context for a lambda, when the normal declaration context is not specific enough.
Certain contexts (default arguments of in-class function parameters and the initializers of data members) have separate name mangling rules for lambdas within the Itanium C++ ABI. For these cases, this routine provides the declaration in which the lambda occurs, e.g., the function parameter or the non-static data member. Otherwise, it returns NULL to imply that the declaration context suffices.
Definition at line 1643 of file DeclCXX.h.
References isLambda().
Referenced by computeLVForDecl().
unsigned clang::CXXRecordDecl::getLambdaManglingNumber | ( | ) | const [inline] |
If this is the closure type of a lambda expression, retrieve the number to be used for name mangling in the Itanium C++ ABI.
Zero indicates that this closure type has internal linkage, so the mangling number does not matter, while a non-zero value indicates which lambda expression this is in this particular context.
Definition at line 1629 of file DeclCXX.h.
References isLambda().
Referenced by computeLVForDecl().
CXXMethodDecl * CXXRecordDecl::getLambdaStaticInvoker | ( | ) | const |
Retrieve the lambda static invoker, the address of which is returned by the conversion operator, and the body of which is forwarded to the lambda call operator.
Definition at line 1007 of file DeclCXX.cpp.
References clang::IdentifierTable::get(), clang::Decl::getASTContext(), clang::getLambdaStaticInvokerName(), clang::ASTContext::Idents, isLambda(), and clang::DeclContext::lookup().
Referenced by clang::Sema::DefineImplicitLambdaToFunctionPointerConversion(), and clang::CXXMethodDecl::isLambdaStaticInvoker().
TypeSourceInfo* clang::CXXRecordDecl::getLambdaTypeInfo | ( | ) | const [inline] |
MemberSpecializationInfo* clang::CXXRecordDecl::getMemberSpecializationInfo | ( | ) | const [inline] |
If this class is an instantiation of a member class of a class template specialization, retrieves the member specialization information.
Definition at line 1344 of file DeclCXX.h.
Referenced by clang::Sema::ActOnExplicitInstantiation(), clang::Sema::CheckMemberSpecialization(), getInstantiatedFromMemberClass(), getTemplateInstantiationPattern(), getTemplateSpecializationKind(), clang::Sema::InstantiateClass(), setTemplateSpecializationKind(), and clang::ASTDeclWriter::VisitCXXRecordDecl().
CXXRecordDecl* clang::CXXRecordDecl::getMostRecentDecl | ( | ) | [inline] |
Returns the most recent (re)declaration of this declaration.
Reimplemented from clang::RecordDecl.
Reimplemented in clang::ClassTemplatePartialSpecializationDecl, and clang::ClassTemplateSpecializationDecl.
Definition at line 666 of file DeclCXX.h.
Referenced by assignInheritanceModel(), clang::MemberPointerType::getMostRecentCXXRecordDecl(), getMostRecentDecl(), and clang::CXXUuidofExpr::GetUuidAttrOfType().
const CXXRecordDecl* clang::CXXRecordDecl::getMostRecentDecl | ( | ) | const [inline] |
Returns the most recent (re)declaration of this declaration.
Reimplemented from clang::RecordDecl.
Definition at line 671 of file DeclCXX.h.
References getMostRecentDecl().
MSInheritanceAttr::Spelling CXXRecordDecl::getMSInheritanceModel | ( | ) | const |
Returns the inheritance model used for this record.
Definition at line 127 of file AST/MicrosoftCXXABI.cpp.
Referenced by getInheritanceFromMemptr(), getMSMemberPointerSlots(), and nullFieldOffsetIsZero().
MSVtorDispAttr::Mode CXXRecordDecl::getMSVtorDispMode | ( | ) | const |
Controls when vtordisps will be emitted if this record is used as a virtual base.
Definition at line 133 of file AST/MicrosoftCXXABI.cpp.
References clang::Decl::getASTContext().
unsigned clang::CXXRecordDecl::getNumBases | ( | ) | const [inline] |
Retrieves the number of base classes of this class.
Definition at line 707 of file DeclCXX.h.
References data().
Referenced by clang::Sema::ActOnSuperScopeSpecifier(), CanUseSingleInheritance(), clang::Sema::CheckCompletedCXXClass(), clang::Sema::CheckConstexprFunctionBody(), checkMoveAssignmentForRepeatedMove(), HandleConstructorCall(), and usesMultipleInheritanceModel().
unsigned clang::CXXRecordDecl::getNumVBases | ( | ) | const [inline] |
Retrieves the number of virtual base classes of this class.
Definition at line 728 of file DeclCXX.h.
References data().
Referenced by calculateInheritanceModel(), clang::Sema::CheckCompletedCXXClass(), clang::Sema::CheckConstexprFunctionBody(), clang::Sema::CheckConstexprFunctionDecl(), checkMoveAssignmentForRepeatedMove(), defaultedSpecialMemberIsConstexpr(), clang::CodeGen::CodeGenFunction::EmitCtorPrologue(), emitCXXDestructor(), clang::CodeGen::CodeGenVTables::GenerateClassData(), clang::CodeGen::CodeGenVTables::GetAddrOfVTT(), getCodegenToUse(), getIndirectPrimaryBases(), HandleConstructorCall(), clang::CodeGen::CodeGenFunction::InitializeVTablePointers(), IsConstructorDelegationValid(), isVirtuallyDerivedFrom(), clang::Sema::MarkVirtualMembersReferenced(), clang::Sema::RequireLiteralType(), and clang::CodeGen::CodeGenModule::TryEmitBaseDestructorAsAlias().
CXXRecordDecl* clang::CXXRecordDecl::getPreviousDecl | ( | ) | [inline] |
Return the previous declaration of this declaration or NULL if this is the first declaration.
Reimplemented from clang::RecordDecl.
Definition at line 658 of file DeclCXX.h.
Referenced by clang::Sema::ActOnClassTemplateSpecialization(), clang::Sema::ActOnExplicitInstantiation(), clang::ASTContext::getInjectedClassNameType(), clang::ClassTemplateSpecializationDecl::getMostRecentDecl(), getPreviousDecl(), and clang::ASTDeclWriter::VisitClassTemplatePartialSpecializationDecl().
const CXXRecordDecl* clang::CXXRecordDecl::getPreviousDecl | ( | ) | const [inline] |
Reimplemented from clang::RecordDecl.
Definition at line 662 of file DeclCXX.h.
References getPreviousDecl().
const CXXRecordDecl * CXXRecordDecl::getTemplateInstantiationPattern | ( | ) | const |
Retrieve the record declaration from which this record could be instantiated. Returns null if this class is not a template instantiation.
Definition at line 1264 of file DeclCXX.cpp.
References getInstantiatedFromMemberClass(), getMemberSpecializationInfo(), getTemplateSpecializationKind(), and clang::isTemplateInstantiation().
Referenced by clang::Sema::BuildCXXDefaultInitExpr(), getDefiningModule(), getTemplateInstantiationPattern(), and clang::Sema::InstantiateClassMembers().
Definition at line 1384 of file DeclCXX.h.
References getTemplateInstantiationPattern().
Determine whether this particular class is a specialization or instantiation of a class template or member class of a class template, and how it was instantiated or specialized.
Definition at line 1237 of file DeclCXX.cpp.
References getMemberSpecializationInfo(), and clang::TSK_Undeclared.
Referenced by clang::Sema::ActOnClassTemplateSpecialization(), clang::Sema::ActOnExplicitInstantiation(), clang::Sema::BuildCXXDefaultInitExpr(), clang::Sema::CheckCompletedCXXClass(), checkDLLAttribute(), clang::Sema::CheckMemberSpecialization(), computeKeyFunction(), clang::Sema::DefineUsedVTables(), getTemplateInstantiationPattern(), clang::CodeGen::CodeGenModule::getVTableLinkage(), clang::ClassTemplateSpecializationDecl::isExplicitInstantiationOrSpecialization(), and clang::CodeGen::CodeGenVTables::isVTableExternal().
std::pair< CXXRecordDecl::conversion_iterator, CXXRecordDecl::conversion_iterator > CXXRecordDecl::getVisibleConversionFunctions | ( | ) |
Get all conversion functions visible in current class, including conversion function templates.
getVisibleConversionFunctions - get all conversion functions visible in current class; including conversion function templates.
Definition at line 1177 of file DeclCXX.cpp.
References bases_begin(), bases_end(), clang::ASTUnresolvedSet::begin(), CollectVisibleConversions(), data(), clang::ASTUnresolvedSet::end(), and clang::Decl::getASTContext().
Referenced by CollectVRQualifiers(), TryRefInitWithConversionFunction(), and TryUserDefinedConversion().
bool CXXRecordDecl::hasAnyDependentBases | ( | ) | const |
Determine whether this class has any dependent base classes which are not the current instantiation.
Definition at line 394 of file DeclCXX.cpp.
References forallBases(), clang::DeclContext::isDependentContext(), and SawBase().
Referenced by clang::Sema::BuildBaseInitializer(), clang::Sema::BuildCXXNestedNameSpecifier(), clang::Sema::CheckOverrideControl(), clang::Sema::LookupQualifiedName(), and recoverFromMSUnqualifiedLookup().
bool clang::CXXRecordDecl::hasConstexprDefaultConstructor | ( | ) | const [inline] |
Determine whether this class has a constexpr default constructor.
Definition at line 1196 of file DeclCXX.h.
References data(), defaultedDefaultConstructorIsConstexpr(), and needsImplicitDefaultConstructor().
Referenced by setBases().
bool clang::CXXRecordDecl::hasConstexprNonCopyMoveConstructor | ( | ) | const [inline] |
Determine whether this class has at least one constexpr constructor other than the copy or move constructors.
Definition at line 1182 of file DeclCXX.h.
References data(), defaultedDefaultConstructorIsConstexpr(), and needsImplicitDefaultConstructor().
Referenced by isLiteral(), and clang::Sema::RequireLiteralType().
bool clang::CXXRecordDecl::hasCopyAssignmentWithConstParam | ( | ) | const [inline] |
Determine whether this class has a copy assignment operator with a parameter type which is a reference to a const-qualified type or is not a reference.
Definition at line 954 of file DeclCXX.h.
References data(), implicitCopyAssignmentHasConstParam(), and needsImplicitCopyAssignment().
Referenced by setBases().
bool clang::CXXRecordDecl::hasCopyConstructorWithConstParam | ( | ) | const [inline] |
Determine whether this class has a copy constructor with a parameter type which is a reference to a const-qualified type.
Definition at line 872 of file DeclCXX.h.
References data(), implicitCopyConstructorHasConstParam(), and needsImplicitCopyConstructor().
Referenced by setBases().
bool clang::CXXRecordDecl::hasDefaultConstructor | ( | ) | const [inline] |
Determine whether this class has any default constructors.
Definition at line 818 of file DeclCXX.h.
References data(), and needsImplicitDefaultConstructor().
Referenced by hasTrivialDefaultConstructor(), TryConstructorInitialization(), and TryListInitialization().
bool clang::CXXRecordDecl::hasDefinition | ( | ) | const [inline] |
Definition at line 680 of file DeclCXX.h.
References clang::LazyDefinitionDataPtr< Decl, T >::get().
Referenced by addAssociatedClassesAndNamespaces(), calculateInheritanceModel(), clang::Sema::checkMSInheritanceAttrOnDefinition(), CollectVRQualifiers(), EmitObjectDelete(), clang::CodeGen::CodeGenFunction::EmitTypeCheck(), clang::Sema::getFixItZeroInitializerForType(), isCLike(), clang::Sema::IsDerivedFrom(), IsDerivedFromInclusive(), clang::Sema::mergeMSInheritanceAttr(), nullFieldOffsetIsZero(), shouldOmitDefinition(), ShouldUseExternalRTTIDescriptor(), and warnAboutAmbiguousFunction().
bool clang::CXXRecordDecl::hasFriends | ( | ) | const [inline] |
bool clang::CXXRecordDecl::hasInClassInitializer | ( | ) | const [inline] |
Whether this class has any in-class initializers for non-static data members (including those in anonymous unions or structs).
Definition at line 1104 of file DeclCXX.h.
References data().
Referenced by checkDuplicateDefaultInit(), defaultedDefaultConstructorIsConstexpr(), and findDefaultInitializer().
bool clang::CXXRecordDecl::hasIrrelevantDestructor | ( | ) | const [inline] |
Determine whether this class has a destructor which has no semantic effect.
Any such destructor will be trivial, public, defaulted and not deleted, and will call only irrelevant destructors.
Definition at line 1275 of file DeclCXX.h.
References data().
Referenced by clang::Sema::ActOnCXXDelete(), clang::Sema::CheckCXXThrowOperand(), clang::Sema::CheckParmsForFunctionDef(), clang::Sema::FinalizeVarWithDestructor(), clang::Sema::MarkBaseAndMemberDestructorsReferenced(), and setBases().
bool clang::CXXRecordDecl::hasMoveAssignment | ( | ) | const [inline] |
Determine whether this class has a move assignment operator.
Definition at line 967 of file DeclCXX.h.
References data(), and needsImplicitMoveAssignment().
Referenced by hasSimpleMoveAssignment(), and hasTrivialMoveAssignment().
bool clang::CXXRecordDecl::hasMoveConstructor | ( | ) | const [inline] |
Determine whether this class has a move constructor.
Definition at line 895 of file DeclCXX.h.
References data(), and needsImplicitMoveConstructor().
Referenced by hasSimpleMoveConstructor(), and hasTrivialMoveConstructor().
bool clang::CXXRecordDecl::hasMutableFields | ( | ) | const [inline] |
Determine whether this class, or any of its class subobjects, contains a mutable field.
Definition at line 1160 of file DeclCXX.h.
References data().
Referenced by diagnoseUnreadableFields(), and setBases().
bool clang::CXXRecordDecl::hasNonLiteralTypeFieldsOrBases | ( | ) | const [inline] |
Determine whether this class has a non-literal or/ volatile type non-static data member or base class.
Definition at line 1281 of file DeclCXX.h.
References data().
Referenced by isLiteral(), clang::Sema::RequireLiteralType(), and setBases().
bool clang::CXXRecordDecl::hasNonTrivialCopyAssignment | ( | ) | const [inline] |
Determine whether this class has a non-trivial copy assignment operator (C++ [class.copy]p11, C++11 [class.copy]p25)
Definition at line 1238 of file DeclCXX.h.
References data(), and hasTrivialCopyAssignment().
Referenced by clang::Sema::CheckNontrivialField(), EvaluateUnaryTypeTrait(), and isTriviallyCopyable().
bool clang::CXXRecordDecl::hasNonTrivialCopyConstructor | ( | ) | const [inline] |
Determine whether this class has a non-trivial copy constructor (C++ [class.copy]p6, C++11 [class.copy]p12)
Definition at line 1210 of file DeclCXX.h.
References data(), and hasTrivialCopyConstructor().
Referenced by clang::CodeGen::CGCXXABI::canCopyArgument(), clang::Sema::CheckNontrivialField(), and isTriviallyCopyable().
bool clang::CXXRecordDecl::hasNonTrivialDefaultConstructor | ( | ) | const [inline] |
Determine whether this class has a non-trivial default constructor (C++11 [class.ctor]p5).
Definition at line 1174 of file DeclCXX.h.
References data(), and needsImplicitDefaultConstructor().
bool clang::CXXRecordDecl::hasNonTrivialDestructor | ( | ) | const [inline] |
Determine whether this class has a non-trivial destructor (C++ [class.dtor]p3)
Definition at line 1266 of file DeclCXX.h.
References data().
Referenced by clang::CodeGen::CGCXXABI::canCopyArgument(), clang::Sema::CheckNontrivialField(), clang::CodeGen::CodeGenFunction::EmitCallArg(), and clang::CodeGen::CodeGenFunction::EmitParmDecl().
bool clang::CXXRecordDecl::hasNonTrivialMoveAssignment | ( | ) | const [inline] |
Determine whether this class has a non-trivial move assignment operator (C++11 [class.copy]p25)
Definition at line 1252 of file DeclCXX.h.
References data(), and needsImplicitMoveAssignment().
Referenced by checkMoveAssignmentForRepeatedMove(), EvaluateUnaryTypeTrait(), and isTriviallyCopyable().
bool clang::CXXRecordDecl::hasNonTrivialMoveConstructor | ( | ) | const [inline] |
Determine whether this class has a non-trivial move constructor (C++11 [class.copy]p12)
Definition at line 1224 of file DeclCXX.h.
References data(), and needsImplicitMoveConstructor().
Referenced by clang::CodeGen::CGCXXABI::canCopyArgument(), and isTriviallyCopyable().
bool clang::CXXRecordDecl::hasSimpleDestructor | ( | ) | const [inline] |
true
if we know for sure that this class has an accessible destructor that is not deleted.
Definition at line 812 of file DeclCXX.h.
References data(), and hasUserDeclaredDestructor().
bool clang::CXXRecordDecl::hasSimpleMoveAssignment | ( | ) | const [inline] |
true
if we know for sure that this class has a single, accessible, unambiguous move assignment operator that is not deleted.
Definition at line 806 of file DeclCXX.h.
References data(), hasMoveAssignment(), and hasUserDeclaredMoveAssignment().
bool clang::CXXRecordDecl::hasSimpleMoveConstructor | ( | ) | const [inline] |
true
if we know for sure that this class has a single, accessible, unambiguous move constructor that is not deleted.
Definition at line 800 of file DeclCXX.h.
References data(), hasMoveConstructor(), and hasUserDeclaredMoveConstructor().
bool clang::CXXRecordDecl::hasTrivialCopyAssignment | ( | ) | const [inline] |
Determine whether this class has a trivial copy assignment operator (C++ [class.copy]p11, C++11 [class.copy]p25)
Definition at line 1232 of file DeclCXX.h.
References data().
Referenced by clang::Sema::DeclareImplicitCopyAssignment(), clang::CodeGen::CodeGenFunction::EmitAggregateCopy(), EvaluateUnaryTypeTrait(), findTrivialSpecialMember(), hasNonTrivialCopyAssignment(), and setBases().
bool clang::CXXRecordDecl::hasTrivialCopyConstructor | ( | ) | const [inline] |
Determine whether this class has a trivial copy constructor (C++ [class.copy]p6, C++11 [class.copy]p12)
Definition at line 1204 of file DeclCXX.h.
References data().
Referenced by clang::Sema::DeclareImplicitCopyConstructor(), clang::CodeGen::CodeGenFunction::EmitAggregateCopy(), findTrivialSpecialMember(), hasNonTrivialCopyConstructor(), and setBases().
bool clang::CXXRecordDecl::hasTrivialDefaultConstructor | ( | ) | const [inline] |
Determine whether this class has a trivial default constructor (C++11 [class.ctor]p5).
Definition at line 1167 of file DeclCXX.h.
References data(), and hasDefaultConstructor().
Referenced by clang::Sema::CheckNontrivialField(), clang::Sema::DeclareImplicitDefaultConstructor(), findTrivialSpecialMember(), isLiteral(), isTrivial(), clang::Sema::RequireLiteralType(), and setBases().
bool clang::CXXRecordDecl::hasTrivialDestructor | ( | ) | const [inline] |
Determine whether this class has a trivial destructor (C++ [class.dtor]p3)
Definition at line 1260 of file DeclCXX.h.
References data().
Referenced by clang::Sema::CheckCompleteVariableDeclaration(), clang::Sema::DeclareImplicitDestructor(), EmitBaseInitializer(), clang::CodeGen::CodeGenFunction::EmitCXXAggrConstructorCall(), clang::CodeGen::CodeGenFunction::EmitCXXConstructLValue(), clang::CodeGen::CodeGenFunction::EmitCXXThrowExpr(), EmitDeclDestroy(), EmitObjectDelete(), clang::CodeGen::CodeGenFunction::EnterDtorCleanups(), findTrivialSpecialMember(), hasNontrivialDestruction(), HasTrivialDestructorBody(), clang::Expr::isConstantInitializer(), isLiteral(), isTriviallyCopyable(), mayInlineCallKind(), clang::RecordDecl::mayInsertExtraPadding(), clang::CodeGen::CodeGenFunction::PushDestructorCleanup(), clang::Sema::RequireLiteralType(), and setBases().
bool clang::CXXRecordDecl::hasTrivialMoveAssignment | ( | ) | const [inline] |
Determine whether this class has a trivial move assignment operator (C++11 [class.copy]p25)
Definition at line 1245 of file DeclCXX.h.
References data(), and hasMoveAssignment().
Referenced by checkMoveAssignmentForRepeatedMove(), clang::Sema::DeclareImplicitMoveAssignment(), clang::CodeGen::CodeGenFunction::EmitAggregateCopy(), EvaluateUnaryTypeTrait(), and setBases().
bool clang::CXXRecordDecl::hasTrivialMoveConstructor | ( | ) | const [inline] |
Determine whether this class has a trivial move constructor (C++11 [class.copy]p12)
Definition at line 1217 of file DeclCXX.h.
References data(), and hasMoveConstructor().
Referenced by clang::Sema::DeclareImplicitMoveConstructor(), clang::CodeGen::CodeGenFunction::EmitAggregateCopy(), and setBases().
bool clang::CXXRecordDecl::hasUninitializedReferenceMember | ( | ) | const [inline] |
Whether this class or any of its subobjects has any members of reference type which would make value-initialization ill-formed.
Per C++03 [dcl.init]p5:
Definition at line 1114 of file DeclCXX.h.
References data(), hasUserDeclaredConstructor(), and clang::TagDecl::isUnion().
Referenced by DiagnoseUninitializedReference(), and setBases().
bool clang::CXXRecordDecl::hasUserDeclaredConstructor | ( | ) | const [inline] |
Determine whether this class has any user-declared constructors.
When true, a default constructor will not be implicitly declared.
Definition at line 835 of file DeclCXX.h.
References data().
Referenced by clang::Sema::AddImplicitlyDeclaredMembersToClass(), CheckAggExprForMemSetUse(), clang::Sema::CheckCompletedCXXClass(), and hasUninitializedReferenceMember().
bool clang::CXXRecordDecl::hasUserDeclaredCopyAssignment | ( | ) | const [inline] |
Determine whether this class has a user-declared copy assignment operator.
When false, a copy assigment operator will be implicitly declared.
Definition at line 929 of file DeclCXX.h.
References data().
Referenced by clang::Sema::AddImplicitlyDeclaredMembersToClass(), needsImplicitMoveAssignment(), and needsImplicitMoveConstructor().
bool clang::CXXRecordDecl::hasUserDeclaredCopyConstructor | ( | ) | const [inline] |
Determine whether this class has a user-declared copy constructor.
When false, a copy constructor will be implicitly declared.
Definition at line 848 of file DeclCXX.h.
References data().
Referenced by clang::Sema::AddImplicitlyDeclaredMembersToClass(), needsImplicitMoveAssignment(), and needsImplicitMoveConstructor().
bool clang::CXXRecordDecl::hasUserDeclaredDestructor | ( | ) | const [inline] |
Determine whether this class has a user-declared destructor.
When false, a destructor will be implicitly declared.
Definition at line 1001 of file DeclCXX.h.
References data().
Referenced by clang::Sema::AddImplicitlyDeclaredMembersToClass(), hasSimpleDestructor(), clang::Sema::MarkVTableUsed(), needsImplicitMoveAssignment(), and needsImplicitMoveConstructor().
bool clang::CXXRecordDecl::hasUserDeclaredMoveAssignment | ( | ) | const [inline] |
Determine whether this class has had a move assignment declared by the user.
Definition at line 962 of file DeclCXX.h.
References data().
Referenced by hasSimpleMoveAssignment(), needsImplicitMoveConstructor(), and clang::Sema::ShouldDeleteSpecialMember().
bool clang::CXXRecordDecl::hasUserDeclaredMoveConstructor | ( | ) | const [inline] |
Determine whether this class has had a move constructor declared by the user.
Definition at line 890 of file DeclCXX.h.
References data().
Referenced by hasSimpleMoveConstructor(), needsImplicitMoveAssignment(), and clang::Sema::ShouldDeleteSpecialMember().
bool clang::CXXRecordDecl::hasUserDeclaredMoveOperation | ( | ) | const [inline] |
bool clang::CXXRecordDecl::hasUserProvidedDefaultConstructor | ( | ) | const [inline] |
Whether this class has a user-provided default constructor per C++11.
Definition at line 841 of file DeclCXX.h.
References data().
Referenced by clang::Sema::getFixItZeroInitializerForType(), and warnAboutAmbiguousFunction().
bool clang::CXXRecordDecl::hasVariantMembers | ( | ) | const [inline] |
Determine whether this class has any variant members.
Definition at line 1163 of file DeclCXX.h.
References data().
Referenced by CheckConstexprCtorInitializer(), clang::Sema::CheckConstexprFunctionBody(), and defaultedDefaultConstructorIsConstexpr().
bool clang::CXXRecordDecl::implicitCopyAssignmentHasConstParam | ( | ) | const [inline] |
Determine whether an implicit copy assignment operator for this type would have a parameter with a const-qualified reference type.
Definition at line 947 of file DeclCXX.h.
References data().
Referenced by clang::Sema::CheckExplicitlyDefaultedSpecialMember(), clang::Sema::DeclareImplicitCopyAssignment(), and hasCopyAssignmentWithConstParam().
bool clang::CXXRecordDecl::implicitCopyConstructorHasConstParam | ( | ) | const [inline] |
Determine whether an implicit copy constructor for this type would have a parameter with a const-qualified reference type.
Definition at line 866 of file DeclCXX.h.
References data().
Referenced by clang::Sema::CheckExplicitlyDefaultedSpecialMember(), clang::Sema::DeclareImplicitCopyConstructor(), and hasCopyConstructorWithConstParam().
bool clang::CXXRecordDecl::isAbstract | ( | ) | const [inline] |
Determine whether this class has a pure virtual function.
The class is is abstract per (C++ [class.abstract]p2) if it declares a pure virtual function or inherits a pure virtual function that is not overridden.
Definition at line 1152 of file DeclCXX.h.
References data().
Referenced by clang::Sema::ActOnCXXDelete(), clang::Sema::CheckCompletedCXXClass(), evaluateTypeTrait(), clang::Sema::inferCUDATargetForImplicitSpecialMember(), mayBeAbstract(), clang::Sema::RequireNonAbstractType(), clang::Sema::SetCtorInitializers(), and clang::Sema::ShouldDeleteSpecialMember().
bool clang::CXXRecordDecl::isAggregate | ( | ) | const [inline] |
Determine whether this class is an aggregate (C++ [dcl.init.aggr]), which is a class with no user-declared constructors, no private or protected non-static data members, no base classes, and no virtual functions (C++ [dcl.init.aggr]p1).
Definition at line 1099 of file DeclCXX.h.
References data().
Referenced by clang::Sema::CheckCompletedCXXClass(), clang::Sema::getFixItZeroInitializerForType(), isLiteral(), and clang::Sema::RequireLiteralType().
bool CXXRecordDecl::isCLike | ( | ) | const |
True if this class is C-like, without C++-specific features, e.g. it contains only public fields, no bases, tag kind is not 'class', etc.
Definition at line 975 of file DeclCXX.cpp.
References data(), clang::TagDecl::getTagKind(), hasDefinition(), isPOD(), clang::TTK_Class, and clang::TTK_Interface.
Referenced by clang::Sema::ActOnFields().
bool CXXRecordDecl::isCurrentInstantiation | ( | const DeclContext * | CurContext | ) | const |
Determine whether this dependent class is a current instantiation, when viewed from within the given context.
Definition at line 122 of file CXXInheritance.cpp.
References clang::DeclContext::Equals(), clang::DeclContext::getParent(), clang::DeclContext::isDependentContext(), and clang::DeclContext::isFileContext().
Referenced by forallBases(), and getCurrentInstantiationOf().
bool clang::CXXRecordDecl::isDependentLambda | ( | ) | const [inline] |
Determine whether this lambda expression was known to be dependent at the time it was created, even if its context does not appear to be dependent.
This flag is a workaround for an issue with parsing, where default arguments are parsed before their enclosing function declarations have been created. This means that any lambda expressions within those default arguments will have as their DeclContext the context enclosing the function declaration, which may be non-dependent even when the function declaration itself is dependent. This flag indicates when we know that the lambda is dependent despite that.
Definition at line 1687 of file DeclCXX.h.
References isLambda().
bool CXXRecordDecl::isDerivedFrom | ( | const CXXRecordDecl * | Base | ) | const |
Determine whether this class is derived from the class Base
.
This routine only determines whether this class is derived from Base
, but does not account for factors that may make a Derived -> Base class ill-formed, such as private/protected inheritance or multiple, ambiguous base class subobjects.
Base | the base class we are searching for. |
Definition at line 76 of file CXXInheritance.cpp.
Referenced by adjustReturnValue(), computeOffsetHint(), DiagnoseReinterpretUpDownCast(), FindBestPath(), clang::CXXDynamicCastExpr::isAlwaysNull(), clang::Sema::IsDerivedFrom(), and clang::FunctionCallFilterCCC::ValidateCandidate().
bool CXXRecordDecl::isDerivedFrom | ( | const CXXRecordDecl * | Base, |
CXXBasePaths & | Paths | ||
) | const |
Determine whether this class is derived from the type Base
.
This routine only determines whether this class is derived from Base
, but does not account for factors that may make a Derived -> Base class ill-formed, such as private/protected inheritance or multiple, ambiguous base class subobjects.
Base | the base class we are searching for. |
Paths | will contain the paths taken from the current class to the given Base class. |
Base
, false otherwise.Paths
Definition at line 82 of file CXXInheritance.cpp.
References FindBaseClass(), getCanonicalDecl(), lookupInBases(), and clang::CXXBasePaths::setOrigin().
bool clang::CXXRecordDecl::isDynamicClass | ( | ) | const [inline] |
Definition at line 693 of file DeclCXX.h.
References data().
Referenced by clang::Sema::AddImplicitlyDeclaredMembersToClass(), CanUseSingleInheritance(), clang::Sema::CheckCompletedCXXClass(), clang::CodeGen::CGDebugInfo::completeRequiredType(), clang::ASTContext::DeclMustBeEmitted(), DumpCXXRecordLayout(), clang::CodeGen::CodeGenFunction::EmitTypeCheck(), clang::ASTContext::getASTRecordLayout(), getContainedDynamicClass(), getTypeInfoLinkage(), clang::CodeGen::CodeGenFunction::InitializeVTablePointers(), clang::CodeGen::CodeGenVTables::isVTableExternal(), clang::Sema::MarkVTableUsed(), shouldOmitDefinition(), ShouldUseExternalRTTIDescriptor(), and clang::Sema::SpecialMemberIsTrivial().
bool clang::CXXRecordDecl::isEmpty | ( | ) | const [inline] |
Determine whether this is an empty class in the sense of (C++11 [meta.unary.prop]).
A non-union class is empty iff it has a virtual function, virtual base, data member (other than 0-width bit-field) or inherits from a non-empty class.
Definition at line 1141 of file DeclCXX.h.
References data().
Referenced by CanUseSingleInheritance(), CheckConstexprCtorInitializer(), DumpCXXRecordLayout(), clang::CodeGen::CodeGenFunction::EmitAggregateCopy(), clang::CodeGen::CodeGenFunction::EmitNewArrayInitializer(), EmitNullBaseClassInitialization(), EmitNullConstant(), isReadByLvalueToRvalueConversion(), setBases(), and warnAboutAmbiguousFunction().
bool CXXRecordDecl::isGenericLambda | ( | ) | const |
Determine whether this class describes a generic lambda function object (i.e. function call operator is a template).
Definition at line 985 of file DeclCXX.cpp.
References isLambda().
Referenced by clang::Sema::ActOnLambdaExpr(), addFunctionPointerConversion(), clang::Sema::DefineImplicitLambdaToBlockPointerConversion(), clang::Sema::DefineImplicitLambdaToFunctionPointerConversion(), clang::CodeGen::CodeGenFunction::EmitLambdaBlockInvokeBody(), clang::CodeGen::CodeGenFunction::EmitLambdaDelegatingInvokeBody(), clang::isGenericLambdaCallOperatorSpecialization(), clang::CXXMethodDecl::isLambdaStaticInvoker(), and SpecializeCorrespondingLambdaCallOperatorAndInvoker().
bool clang::CXXRecordDecl::isLambda | ( | ) | const [inline] |
Determine whether this class describes a lambda function object.
Reimplemented from clang::RecordDecl.
Definition at line 1018 of file DeclCXX.h.
References clang::LazyDefinitionDataPtr< Decl, T >::getNotUpdated().
Referenced by clang::Sema::ActOnSuperScopeSpecifier(), clang::Sema::BuildCXXMemberCallExpr(), captures_begin(), captures_end(), clang::Sema::CheckCompletedCXXClass(), compareConversionFunctions(), computeLVForDecl(), getGenericLambdaTemplateParameterList(), getLambdaCallOperator(), getLambdaCaptureDefault(), getLambdaContextDecl(), getLambdaManglingNumber(), getLambdaStaticInvoker(), getNonClosureContext(), getOutermostEnclosingLambda(), isDependentLambda(), isGenericLambda(), clang::isLambdaCallOperator(), clang::isLambdaConversionOperator(), clang::CXXMethodDecl::isLambdaStaticInvoker(), clang::CXXConversionDecl::isLambdaToBlockPointerConversion(), clang::Sema::ShouldDeleteSpecialMember(), and clang::CodeGen::CodeGenFunction::StartFunction().
bool clang::CXXRecordDecl::isLiteral | ( | ) | const [inline] |
Determine whether this class is a literal type.
C++11 [basic.types]p10: A class type that has all the following properties:
We resolve DR1361 by ignoring the second bullet. We resolve DR1452 by treating types with trivial default constructors as literal types.
Definition at line 1313 of file DeclCXX.h.
References hasConstexprNonCopyMoveConstructor(), hasNonLiteralTypeFieldsOrBases(), hasTrivialDefaultConstructor(), hasTrivialDestructor(), and isAggregate().
Referenced by clang::Sema::CheckCompletedCXXClass(), and defaultedSpecialMemberIsConstexpr().
const FunctionDecl* clang::CXXRecordDecl::isLocalClass | ( | ) | const [inline] |
If the class is a local class [class.local], returns the enclosing function declaration.
Definition at line 1394 of file DeclCXX.h.
References clang::Decl::getDeclContext().
Referenced by clang::Sema::InstantiateClassMembers(), isLocalClass(), and clang::Sema::MarkVTableUsed().
FunctionDecl* clang::CXXRecordDecl::isLocalClass | ( | ) | [inline] |
Definition at line 1401 of file DeclCXX.h.
References isLocalClass().
bool clang::CXXRecordDecl::isParsingBaseSpecifiers | ( | ) | const [inline] |
Definition at line 699 of file DeclCXX.h.
References data().
Referenced by calculateInheritanceModel().
bool clang::CXXRecordDecl::isPOD | ( | ) | const [inline] |
Whether this class is a POD-type (C++ [class]p4)
For purposes of this function a class is POD if it is an aggregate that has no non-static non-POD data members, no reference data members, no user-defined copy assignment operator and no user-defined destructor.
Note that this is the C++ TR1 definition of POD.
Definition at line 1127 of file DeclCXX.h.
References data().
Referenced by clang::Sema::ActOnUninitializedDecl(), GetDiagForGotoScopeDecl(), isCLike(), and mustSkipTailPadding().
bool clang::CXXRecordDecl::isPolymorphic | ( | ) | const [inline] |
Whether this class is polymorphic (C++ [class.virtual]), which means that the class contains or inherits a virtual function.
Definition at line 1145 of file DeclCXX.h.
References data().
Referenced by clang::Sema::ActOnCXXDelete(), clang::Sema::BuildCXXTypeId(), clang::Sema::CheckCompletedCXXClass(), computeKeyFunction(), nullFieldOffsetIsZero(), setBases(), and usesMultipleInheritanceModel().
bool CXXRecordDecl::isProvablyNotDerivedFrom | ( | const CXXRecordDecl * | Base | ) | const |
Determine whether this class is provably not derived from the type Base
.
Definition at line 116 of file CXXInheritance.cpp.
References BaseIsNot(), forallBases(), and getCanonicalDecl().
Referenced by clang::Sema::CheckQualifiedMemberReference().
bool clang::CXXRecordDecl::isStandardLayout | ( | ) | const [inline] |
Determine whether this class has standard layout per (C++ [class]p7)
Definition at line 1156 of file DeclCXX.h.
References data().
Referenced by clang::RecordDecl::mayInsertExtraPadding(), mustSkipTailPadding(), and setBases().
bool clang::CXXRecordDecl::isTrivial | ( | ) | const [inline] |
Determine whether this class is considered trivial.
C++11 [class]p6: "A trivial class is a class that has a trivial default constructor and is trivially copiable."
Definition at line 1294 of file DeclCXX.h.
References hasTrivialDefaultConstructor(), and isTriviallyCopyable().
Referenced by mustSkipTailPadding().
bool CXXRecordDecl::isTriviallyCopyable | ( | ) | const |
Determine whether this class is considered trivially copyable per (C++11 [class]p6).
Definition at line 401 of file DeclCXX.cpp.
References hasNonTrivialCopyAssignment(), hasNonTrivialCopyConstructor(), hasNonTrivialMoveAssignment(), hasNonTrivialMoveConstructor(), and hasTrivialDestructor().
Referenced by isTrivial(), and clang::RecordDecl::mayInsertExtraPadding().
bool CXXRecordDecl::isVirtuallyDerivedFrom | ( | const CXXRecordDecl * | Base | ) | const |
Determine whether this class is virtually derived from the class Base
.
This routine only determines whether this class is virtually derived from Base
, but does not account for factors that may make a Derived -> Base class ill-formed, such as private/protected inheritance or multiple, ambiguous base class subobjects.
Base | the base class we are searching for. |
Definition at line 93 of file CXXInheritance.cpp.
References FindVirtualBaseClass(), getCanonicalDecl(), getNumVBases(), lookupInBases(), and clang::CXXBasePaths::setOrigin().
Referenced by clang::ento::MemRegion::getAsOffset(), isValidBaseClass(), and lookupInBases().
bool CXXRecordDecl::lookupInBases | ( | BaseMatchesCallback * | BaseMatches, |
void * | UserData, | ||
CXXBasePaths & | Paths | ||
) | const |
Look for entities within the base classes of this C++ class, transitively searching all base class subobjects.
This routine uses the callback function BaseMatches
to find base classes meeting some search criteria, walking all base class subobjects and populating the given Paths
structure with the paths through the inheritance hierarchy that resulted in a match. On a successful search, the Paths
structure can be queried to retrieve the matching paths and to determine if there were any ambiguities.
BaseMatches | callback function used to determine whether a given base matches the user-defined search criteria. |
UserData | user data pointer that will be provided to BaseMatches . |
Paths | used to record the paths from this class to its base class subobjects that match the search criteria. |
Definition at line 299 of file CXXInheritance.cpp.
References clang::CXXBasePaths::begin(), clang::CXXBasePaths::end(), clang::Decl::getASTContext(), clang::Decl::Hidden, clang::CXXBasePaths::isFindingAmbiguities(), clang::CXXBasePaths::isRecordingPaths(), isVirtuallyDerivedFrom(), and P.
Referenced by clang::Sema::AddOverriddenMethods(), clang::Sema::FindHiddenVirtualMethods(), hasMember(), isDerivedFrom(), isVirtuallyDerivedFrom(), and clang::Sema::LookupQualifiedName().
bool CXXRecordDecl::mayBeAbstract | ( | ) | const |
Determine whether this class may end up being abstract, even though it is not yet known to be abstract.
completeDefinition()
will need to compute final overriders to determine whether the class is actually abstract. Definition at line 1363 of file DeclCXX.cpp.
References bases(), data(), isAbstract(), clang::DeclContext::isDependentContext(), and clang::Decl::isInvalidDecl().
Referenced by completeDefinition().
static AccessSpecifier clang::CXXRecordDecl::MergeAccess | ( | AccessSpecifier | PathAccess, |
AccessSpecifier | DeclAccess | ||
) | [inline, static] |
Calculates the access of a decl that is reached along a path.
Definition at line 1591 of file DeclCXX.h.
References clang::AS_none, and clang::AS_private.
Referenced by CollectVisibleConversions(), and clang::Sema::LookupQualifiedName().
method_iterator clang::CXXRecordDecl::method_begin | ( | ) | const [inline] |
Method begin iterator. Iterates in the order the methods were declared.
Definition at line 761 of file DeclCXX.h.
References clang::DeclContext::decls_begin().
Referenced by methods(), and shouldOmitDefinition().
method_iterator clang::CXXRecordDecl::method_end | ( | ) | const [inline] |
Method past-the-end iterator.
Definition at line 765 of file DeclCXX.h.
References clang::DeclContext::decls_end().
Referenced by methods(), and shouldOmitDefinition().
method_range clang::CXXRecordDecl::methods | ( | ) | const [inline] |
Definition at line 755 of file DeclCXX.h.
References method_begin(), and method_end().
Referenced by clang::Sema::CheckCompletedCXXClass(), computeKeyFunction(), GroupNewVirtualOverloads(), clang::Sema::MarkVirtualMemberExceptionSpecsNeeded(), and clang::Sema::ShouldDeleteSpecialMember().
bool clang::CXXRecordDecl::needsImplicitCopyAssignment | ( | ) | const [inline] |
Determine whether this class needs an implicit copy assignment operator to be lazily declared.
Definition at line 935 of file DeclCXX.h.
References data().
Referenced by clang::Sema::DeclareImplicitCopyAssignment(), clang::Sema::ForceDeclarationOfImplicitMembers(), hasCopyAssignmentWithConstParam(), and clang::Sema::LookupSpecialMember().
bool clang::CXXRecordDecl::needsImplicitCopyConstructor | ( | ) | const [inline] |
Determine whether this class needs an implicit copy constructor to be lazily declared.
Definition at line 854 of file DeclCXX.h.
References data().
Referenced by clang::Sema::DeclareImplicitCopyConstructor(), clang::Sema::ForceDeclarationOfImplicitMembers(), hasCopyConstructorWithConstParam(), clang::Sema::LookupConstructors(), and clang::Sema::LookupSpecialMember().
bool clang::CXXRecordDecl::needsImplicitDefaultConstructor | ( | ) | const [inline] |
Determine if we need to declare a default constructor for this class.
This value is used for lazy creation of default constructors.
Definition at line 827 of file DeclCXX.h.
References data().
Referenced by clang::Sema::DeclareImplicitDefaultConstructor(), findTrivialSpecialMember(), clang::Sema::ForceDeclarationOfImplicitMembers(), hasConstexprDefaultConstructor(), hasConstexprNonCopyMoveConstructor(), hasDefaultConstructor(), hasNonTrivialDefaultConstructor(), clang::Sema::LookupConstructors(), and clang::Sema::LookupSpecialMember().
bool clang::CXXRecordDecl::needsImplicitDestructor | ( | ) | const [inline] |
Determine whether this class needs an implicit destructor to be lazily declared.
Definition at line 1007 of file DeclCXX.h.
References data().
Referenced by clang::Sema::DeclareImplicitDestructor(), findTrivialSpecialMember(), clang::Sema::ForceDeclarationOfImplicitMembers(), and clang::Sema::LookupSpecialMember().
bool clang::CXXRecordDecl::needsImplicitMoveAssignment | ( | ) | const [inline] |
Determine whether this class should get an implicit move assignment operator or if any existing special member function inhibits this.
Definition at line 984 of file DeclCXX.h.
References data(), hasUserDeclaredCopyAssignment(), hasUserDeclaredCopyConstructor(), hasUserDeclaredDestructor(), and hasUserDeclaredMoveConstructor().
Referenced by clang::Sema::AddImplicitlyDeclaredMembersToClass(), clang::Sema::DeclareImplicitMoveAssignment(), clang::Sema::ForceDeclarationOfImplicitMembers(), hasMoveAssignment(), hasNonTrivialMoveAssignment(), and clang::Sema::LookupSpecialMember().
bool clang::CXXRecordDecl::needsImplicitMoveConstructor | ( | ) | const [inline] |
Determine whether this class should get an implicit move constructor or if any existing special member function inhibits this.
Definition at line 911 of file DeclCXX.h.
References data(), hasUserDeclaredCopyAssignment(), hasUserDeclaredCopyConstructor(), hasUserDeclaredDestructor(), and hasUserDeclaredMoveAssignment().
Referenced by clang::Sema::AddImplicitlyDeclaredMembersToClass(), clang::Sema::DeclareImplicitMoveConstructor(), clang::Sema::ForceDeclarationOfImplicitMembers(), hasMoveConstructor(), hasNonTrivialMoveConstructor(), clang::Sema::LookupConstructors(), and clang::Sema::LookupSpecialMember().
bool clang::CXXRecordDecl::needsOverloadResolutionForCopyAssignment | ( | ) | const [inline] |
Determine whether we need to eagerly declare a defaulted copy assignment operator for this class.
Definition at line 941 of file DeclCXX.h.
References data().
Referenced by clang::Sema::AddImplicitlyDeclaredMembersToClass(), and clang::Sema::DeclareImplicitCopyAssignment().
bool clang::CXXRecordDecl::needsOverloadResolutionForCopyConstructor | ( | ) | const [inline] |
Determine whether we need to eagerly declare a defaulted copy constructor for this class.
Definition at line 860 of file DeclCXX.h.
References data().
Referenced by clang::Sema::AddImplicitlyDeclaredMembersToClass(), and clang::Sema::DeclareImplicitCopyConstructor().
bool clang::CXXRecordDecl::needsOverloadResolutionForDestructor | ( | ) | const [inline] |
Determine whether we need to eagerly declare a destructor for this class.
Definition at line 1013 of file DeclCXX.h.
References data().
Referenced by clang::Sema::AddImplicitlyDeclaredMembersToClass().
bool clang::CXXRecordDecl::needsOverloadResolutionForMoveAssignment | ( | ) | const [inline] |
Determine whether we need to eagerly declare a move assignment operator for this class.
Definition at line 994 of file DeclCXX.h.
References data().
Referenced by clang::Sema::AddImplicitlyDeclaredMembersToClass(), clang::Sema::DeclareImplicitMoveAssignment(), and setImplicitMoveAssignmentIsDeleted().
bool clang::CXXRecordDecl::needsOverloadResolutionForMoveConstructor | ( | ) | const [inline] |
Determine whether we need to eagerly declare a defaulted move constructor for this class.
Definition at line 921 of file DeclCXX.h.
References data().
Referenced by clang::Sema::AddImplicitlyDeclaredMembersToClass(), clang::Sema::DeclareImplicitMoveConstructor(), and setImplicitMoveConstructorIsDeleted().
bool clang::CXXRecordDecl::nullFieldOffsetIsZero | ( | ) | const [inline] |
In the Microsoft C++ ABI, use zero for the field offset of a null data member pointer if we can guarantee that zero is not a valid field offset, or if the member pointer has multiple fields. Polymorphic classes have a vfptr at offset zero, so we can use zero for null. If there are multiple fields, we can use zero even if it is a valid field offset because null-ness testing will check the other fields.
Definition at line 1666 of file DeclCXX.h.
References getMSInheritanceModel(), hasDefinition(), and isPolymorphic().
void clang::CXXRecordDecl::pushFriendDecl | ( | FriendDecl * | FD | ) | [inline] |
Definition at line 239 of file DeclFriend.h.
References data().
void CXXRecordDecl::removeConversion | ( | const NamedDecl * | Old | ) |
Removes a conversion function from this class. The conversion function must currently be a member of this class. Furthermore, this class must currently be in the process of being defined.
Definition at line 1195 of file DeclCXX.cpp.
References clang::ASTUnresolvedSet::begin(), data(), clang::ASTUnresolvedSet::end(), clang::ASTUnresolvedSet::erase(), clang::Decl::getASTContext(), and clang::ASTUnresolvedSet::size().
void CXXRecordDecl::setBases | ( | CXXBaseSpecifier const *const * | Bases, |
unsigned | NumBases | ||
) |
Sets the base classes of this struct or class.
Definition at line 138 of file DeclCXX.cpp.
References AttributeLangSupport::C, data(), clang::ASTContext::Deallocate(), clang::Type::getAs(), clang::Type::getAsCXXRecordDecl(), clang::Decl::getASTContext(), clang::ASTContext::getCanonicalType(), clang::CXXBaseSpecifier::getType(), hasConstexprDefaultConstructor(), hasCopyAssignmentWithConstParam(), hasCopyConstructorWithConstParam(), hasIrrelevantDestructor(), hasMutableFields(), hasNonLiteralTypeFieldsOrBases(), clang::RecordDecl::hasObjectMember(), hasTrivialCopyAssignment(), hasTrivialCopyConstructor(), hasTrivialDefaultConstructor(), hasTrivialDestructor(), hasTrivialMoveAssignment(), hasTrivialMoveConstructor(), hasUninitializedReferenceMember(), clang::RecordDecl::hasVolatileMember(), clang::Type::isDependentType(), isEmpty(), clang::Type::isLiteralType(), isPolymorphic(), isStandardLayout(), clang::CXXBaseSpecifier::isVirtual(), clang::RecordDecl::setHasObjectMember(), clang::RecordDecl::setHasVolatileMember(), and vbases().
Referenced by clang::Sema::AttachBaseSpecifiers().
void clang::CXXRecordDecl::setDescribedClassTemplate | ( | ClassTemplateDecl * | Template | ) | [inline] |
Definition at line 1368 of file DeclCXX.h.
Referenced by clang::Sema::ActOnStartCXXMemberDeclarations(), and clang::Sema::CheckClassTemplate().
void clang::CXXRecordDecl::setImplicitMoveAssignmentIsDeleted | ( | ) | [inline] |
Set that we attempted to declare an implicit move assignment operator, but overload resolution failed so we deleted it.
Definition at line 974 of file DeclCXX.h.
References data(), and needsOverloadResolutionForMoveAssignment().
Referenced by clang::Sema::DeclareImplicitMoveAssignment().
void clang::CXXRecordDecl::setImplicitMoveConstructorIsDeleted | ( | ) | [inline] |
Set that we attempted to declare an implicitly move constructor, but overload resolution failed so we deleted it.
Definition at line 902 of file DeclCXX.h.
References data(), and needsOverloadResolutionForMoveConstructor().
Referenced by clang::Sema::DeclareImplicitMoveConstructor().
void CXXRecordDecl::setInstantiationOfMemberClass | ( | CXXRecordDecl * | RD, |
TemplateSpecializationKind | TSK | ||
) |
Specify that this record is an instantiation of the member class RD
.
Definition at line 1228 of file DeclCXX.cpp.
References clang::Decl::getASTContext().
void clang::CXXRecordDecl::setIsParsingBaseSpecifiers | ( | ) | [inline] |
Definition at line 697 of file DeclCXX.h.
References data().
Referenced by clang::Sema::ActOnBaseSpecifier().
void clang::CXXRecordDecl::setLambdaMangling | ( | unsigned | ManglingNumber, |
Decl * | ContextDecl | ||
) | [inline] |
Set the mangling number and context declaration for a lambda class.
Definition at line 1650 of file DeclCXX.h.
Referenced by clang::Sema::startLambdaDefinition().
Set the kind of specialization or template instantiation this is.
Definition at line 1249 of file DeclCXX.cpp.
References getMemberSpecializationInfo().
Referenced by clang::Sema::ActOnExplicitInstantiation(), clang::Sema::CheckMemberSpecialization(), clang::Sema::InstantiateClass(), and clang::ASTDeclReader::UpdateDecl().
base_class_range clang::CXXRecordDecl::vbases | ( | ) | [inline] |
Definition at line 730 of file DeclCXX.h.
References vbases_begin(), and vbases_end().
Referenced by clang::Sema::CheckConstexprFunctionDecl(), clang::Sema::CodeCompleteConstructorInitializer(), clang::Sema::ComputeDefaultedCopyAssignmentExceptionSpec(), clang::Sema::ComputeDefaultedCopyCtorExceptionSpec(), clang::Sema::ComputeDefaultedDefaultCtorExceptionSpec(), clang::Sema::ComputeDefaultedDtorExceptionSpec(), clang::Sema::ComputeDefaultedMoveAssignmentExceptionSpec(), clang::Sema::ComputeDefaultedMoveCtorExceptionSpec(), clang::Sema::ComputeInheritingCtorExceptionSpec(), DiagnoseBaseOrMemInitializerOrder(), DumpCXXRecordLayout(), EmitNullConstant(), clang::CodeGen::CodeGenFunction::EnterDtorCleanups(), getPolymorphicOffset(), HasTrivialDestructorBody(), clang::Sema::inferCUDATargetForImplicitSpecialMember(), clang::Sema::MarkBaseAndMemberDestructorsReferenced(), clang::Sema::RequireLiteralType(), setBases(), clang::Sema::SetCtorInitializers(), and clang::Sema::ShouldDeleteSpecialMember().
base_class_const_range clang::CXXRecordDecl::vbases | ( | ) | const [inline] |
Definition at line 733 of file DeclCXX.h.
References vbases_begin(), and vbases_end().
base_class_iterator clang::CXXRecordDecl::vbases_begin | ( | ) | [inline] |
Definition at line 737 of file DeclCXX.h.
References data().
Referenced by vbases(), and vbases_end().
base_class_const_iterator clang::CXXRecordDecl::vbases_begin | ( | ) | const [inline] |
base_class_iterator clang::CXXRecordDecl::vbases_end | ( | ) | [inline] |
Definition at line 739 of file DeclCXX.h.
References data(), and vbases_begin().
Referenced by vbases().
base_class_const_iterator clang::CXXRecordDecl::vbases_end | ( | ) | const [inline] |
Definition at line 740 of file DeclCXX.h.
References data(), and vbases_begin().
void clang::CXXRecordDecl::viewInheritance | ( | ASTContext & | Context | ) | const |
Renders and displays an inheritance diagram for this C++ class and all of its base classes (transitively) using GraphViz.
viewInheritance - Display the inheritance hierarchy of this C++ class using GraphViz.
Definition at line 137 of file InheritViz.cpp.
References clang::QualType::getAsString(), clang::ASTContext::getTypeDeclType(), and clang::InheritanceHierarchyWriter::WriteGraph().
friend class ASTDeclReader [friend] |
Reimplemented from clang::TagDecl.
Reimplemented in clang::ClassTemplatePartialSpecializationDecl, and clang::ClassTemplateSpecializationDecl.
friend class ASTDeclWriter [friend] |
Reimplemented from clang::TagDecl.
Reimplemented in clang::ClassTemplatePartialSpecializationDecl, and clang::ClassTemplateSpecializationDecl.
friend class ASTNodeImporter [friend] |
friend class ASTReader [friend] |
Reimplemented from clang::Decl.
friend class ASTWriter [friend] |
Reimplemented from clang::DeclContext.
friend class DeclContext [friend] |
Reimplemented from clang::RecordDecl.
void FunctionDecl::setPure | ( | bool | ) | [friend] |
friend class LambdaExpr [friend] |
friend class LazyDefinitionDataPtr< CXXRecordDecl, struct DefinitionData > [friend] |
void TagDecl::startDefinition | ( | ) | [friend] |