clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions | Friends
clang::CapturedDecl Class Reference

This represents the body of a CapturedStmt, and serves as its DeclContext. More...

#include <Decl.h>

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

List of all members.

Public Types

typedef ImplicitParamDecl ** param_iterator
typedef llvm::iterator_range
< param_iterator
param_range

Public Member Functions

StmtgetBody () const override
void setBody (Stmt *B)
bool isNothrow () const
void setNothrow (bool Nothrow=true)
unsigned getNumParams () const
ImplicitParamDeclgetParam (unsigned i) const
void setParam (unsigned i, ImplicitParamDecl *P)
ImplicitParamDeclgetContextParam () const
 Retrieve the parameter containing captured variables.
void setContextParam (unsigned i, ImplicitParamDecl *P)
unsigned getContextParamPosition () const
param_iterator param_begin () const
 Retrieve an iterator pointing to the first parameter decl.
param_iterator param_end () const
 Retrieve an iterator one past the last parameter decl.
param_range params () const
 Retrieve an iterator range for the parameter declarations.

Static Public Member Functions

static CapturedDeclCreate (ASTContext &C, DeclContext *DC, unsigned NumParams)
static CapturedDeclCreateDeserialized (ASTContext &C, unsigned ID, unsigned NumParams)
static bool classof (const Decl *D)
static bool classofKind (Kind K)
static DeclContextcastToDeclContext (const CapturedDecl *D)
static CapturedDeclcastFromDeclContext (const DeclContext *DC)

Friends

class ASTDeclReader
class ASTDeclWriter

Detailed Description

This represents the body of a CapturedStmt, and serves as its DeclContext.

Definition at line 3508 of file Decl.h.


Member Typedef Documentation

Definition at line 3561 of file Decl.h.

typedef llvm::iterator_range<param_iterator> clang::CapturedDecl::param_range

Definition at line 3562 of file Decl.h.


Member Function Documentation

static CapturedDecl* clang::CapturedDecl::castFromDeclContext ( const DeclContext DC) [inline, static]

Reimplemented from clang::Decl.

Definition at line 3578 of file Decl.h.

static DeclContext* clang::CapturedDecl::castToDeclContext ( const CapturedDecl D) [inline, static]

Definition at line 3575 of file Decl.h.

Referenced by clang::Sema::ActOnCapturedRegionStart().

static bool clang::CapturedDecl::classof ( const Decl D) [inline, static]

Reimplemented from clang::DeclContext.

Definition at line 3573 of file Decl.h.

References clang::Decl::getKind().

static bool clang::CapturedDecl::classofKind ( Kind  K) [inline, static]

Reimplemented from clang::Decl.

Definition at line 3574 of file Decl.h.

CapturedDecl * CapturedDecl::Create ( ASTContext C,
DeclContext DC,
unsigned  NumParams 
) [static]

Definition at line 3810 of file Decl.cpp.

References AttributeLangSupport::C.

Referenced by clang::Sema::CreateCapturedStmtRecordDecl().

CapturedDecl * CapturedDecl::CreateDeserialized ( ASTContext C,
unsigned  ID,
unsigned  NumParams 
) [static]

Definition at line 3816 of file Decl.cpp.

References AttributeLangSupport::C.

Stmt* clang::CapturedDecl::getBody ( ) const [inline, override, virtual]

getBody - If this Decl represents a declaration for a body of code, such as a function or method definition, this method returns the top-level Stmt* of that body. Otherwise this method returns null.

Reimplemented from clang::Decl.

Definition at line 3532 of file Decl.h.

Referenced by clang::CodeGen::CodeGenFunction::GenerateCapturedStmtFunction().

Retrieve the parameter containing captured variables.

Definition at line 3550 of file Decl.h.

Referenced by clang::CodeGen::CodeGenFunction::GenerateCapturedStmtFunction(), and clang::Sema::PushCapturedRegionScope().

Definition at line 3559 of file Decl.h.

Referenced by clang::ASTDeclWriter::VisitCapturedDecl().

Definition at line 3538 of file Decl.h.

Referenced by clang::ASTDeclWriter::VisitCapturedDecl().

Definition at line 3540 of file Decl.h.

Referenced by clang::ASTDeclWriter::VisitCapturedDecl().

Definition at line 3535 of file Decl.h.

Referenced by clang::ASTDeclWriter::VisitCapturedDecl().

Retrieve an iterator pointing to the first parameter decl.

Definition at line 3565 of file Decl.h.

Referenced by clang::CodeGen::CodeGenFunction::GenerateCapturedStmtFunction().

Retrieve an iterator one past the last parameter decl.

Definition at line 3567 of file Decl.h.

Referenced by clang::CodeGen::CodeGenFunction::GenerateCapturedStmtFunction().

Retrieve an iterator range for the parameter declarations.

Definition at line 3570 of file Decl.h.

void clang::CapturedDecl::setBody ( Stmt B) [inline]

Definition at line 3533 of file Decl.h.

Referenced by clang::Sema::ActOnCapturedRegionEnd().

void clang::CapturedDecl::setNothrow ( bool  Nothrow = true) [inline]

Definition at line 3544 of file Decl.h.

References P.

Referenced by clang::Sema::ActOnCapturedRegionStart(), and clang::ASTDeclReader::VisitCapturedDecl().


Friends And Related Function Documentation

friend class ASTDeclReader [friend]

Reimplemented from clang::Decl.

Definition at line 3582 of file Decl.h.

friend class ASTDeclWriter [friend]

Reimplemented from clang::Decl.

Definition at line 3583 of file Decl.h.


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