clang API Documentation
#include <Decl.h>
Public Types | |
typedef NamedDecl *const * | chain_iterator |
typedef llvm::iterator_range < chain_iterator > | chain_range |
Public Member Functions | |
chain_range | chain () const |
chain_iterator | chain_begin () const |
chain_iterator | chain_end () const |
unsigned | getChainingSize () const |
FieldDecl * | getAnonField () const |
VarDecl * | getVarDecl () const |
Static Public Member Functions | |
static IndirectFieldDecl * | Create (ASTContext &C, DeclContext *DC, SourceLocation L, IdentifierInfo *Id, QualType T, NamedDecl **CH, unsigned CHS) |
static IndirectFieldDecl * | CreateDeserialized (ASTContext &C, unsigned ID) |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
Friends | |
class | ASTDeclReader |
IndirectFieldDecl - An instance of this class is created to represent a field injected from an anonymous union/struct into the parent scope. IndirectFieldDecl are always implicit.
typedef NamedDecl* const* clang::IndirectFieldDecl::chain_iterator |
typedef llvm::iterator_range<chain_iterator> clang::IndirectFieldDecl::chain_range |
chain_range clang::IndirectFieldDecl::chain | ( | ) | const [inline] |
Definition at line 2413 of file Decl.h.
Referenced by EmitMemberInitializer(), clang::ASTContext::getFieldOffset(), clang::ento::ProgramState::getLValue(), HandleLValueIndirectMember(), clang::ASTDeclWriter::VisitIndirectFieldDecl(), and clang::ASTNodeImporter::VisitIndirectFieldDecl().
chain_iterator clang::IndirectFieldDecl::chain_begin | ( | ) | const [inline] |
Definition at line 2414 of file Decl.h.
Referenced by clang::Sema::BuildAnonymousStructUnionMemberReference(), and ExpandAnonymousFieldDesignator().
chain_iterator clang::IndirectFieldDecl::chain_end | ( | ) | const [inline] |
Definition at line 2415 of file Decl.h.
Referenced by clang::Sema::BuildAnonymousStructUnionMemberReference(), and ExpandAnonymousFieldDesignator().
static bool clang::IndirectFieldDecl::classof | ( | const Decl * | D | ) | [inline, static] |
Reimplemented from clang::ValueDecl.
Definition at line 2432 of file Decl.h.
References clang::Decl::getKind().
static bool clang::IndirectFieldDecl::classofKind | ( | Kind | K | ) | [inline, static] |
Reimplemented from clang::ValueDecl.
Definition at line 2433 of file Decl.h.
Referenced by isFieldOrIndirectField().
IndirectFieldDecl * IndirectFieldDecl::Create | ( | ASTContext & | C, |
DeclContext * | DC, | ||
SourceLocation | L, | ||
IdentifierInfo * | Id, | ||
QualType | T, | ||
NamedDecl ** | CH, | ||
unsigned | CHS | ||
) | [static] |
Definition at line 3838 of file Decl.cpp.
References AttributeLangSupport::C.
Referenced by InjectAnonymousStructOrUnionMembers(), and clang::ASTNodeImporter::VisitIndirectFieldDecl().
IndirectFieldDecl * IndirectFieldDecl::CreateDeserialized | ( | ASTContext & | C, |
unsigned | ID | ||
) | [static] |
Definition at line 3844 of file Decl.cpp.
References AttributeLangSupport::C.
FieldDecl* clang::IndirectFieldDecl::getAnonField | ( | ) | const [inline] |
Definition at line 2421 of file Decl.h.
Referenced by EmitMemberInitializer(), clang::CXXCtorInitializer::getAnyMember(), and clang::InitializedEntity::InitializeMember().
unsigned clang::IndirectFieldDecl::getChainingSize | ( | ) | const [inline] |
Definition at line 2419 of file Decl.h.
Referenced by clang::ASTDeclWriter::VisitIndirectFieldDecl(), and clang::ASTNodeImporter::VisitIndirectFieldDecl().
VarDecl* clang::IndirectFieldDecl::getVarDecl | ( | ) | const [inline] |
Definition at line 2426 of file Decl.h.
Referenced by clang::Sema::BuildAnonymousStructUnionMemberReference().
friend class ASTDeclReader [friend] |
Reimplemented from clang::Decl.