clang API Documentation
This represents the body of a CapturedStmt, and serves as its DeclContext. More...
#include <Decl.h>
Public Types | |
typedef ImplicitParamDecl ** | param_iterator |
typedef llvm::iterator_range < param_iterator > | param_range |
Public Member Functions | |
Stmt * | getBody () const override |
void | setBody (Stmt *B) |
bool | isNothrow () const |
void | setNothrow (bool Nothrow=true) |
unsigned | getNumParams () const |
ImplicitParamDecl * | getParam (unsigned i) const |
void | setParam (unsigned i, ImplicitParamDecl *P) |
ImplicitParamDecl * | getContextParam () 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 CapturedDecl * | Create (ASTContext &C, DeclContext *DC, unsigned NumParams) |
static CapturedDecl * | CreateDeserialized (ASTContext &C, unsigned ID, unsigned NumParams) |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
static DeclContext * | castToDeclContext (const CapturedDecl *D) |
static CapturedDecl * | castFromDeclContext (const DeclContext *DC) |
Friends | |
class | ASTDeclReader |
class | ASTDeclWriter |
This represents the body of a CapturedStmt, and serves as its DeclContext.
typedef llvm::iterator_range<param_iterator> clang::CapturedDecl::param_range |
static CapturedDecl* clang::CapturedDecl::castFromDeclContext | ( | const DeclContext * | DC | ) | [inline, static] |
Reimplemented from clang::Decl.
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.
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().
ImplicitParamDecl* clang::CapturedDecl::getContextParam | ( | ) | const [inline] |
Retrieve the parameter containing captured variables.
Definition at line 3550 of file Decl.h.
Referenced by clang::CodeGen::CodeGenFunction::GenerateCapturedStmtFunction(), and clang::Sema::PushCapturedRegionScope().
unsigned clang::CapturedDecl::getContextParamPosition | ( | ) | const [inline] |
Definition at line 3559 of file Decl.h.
Referenced by clang::ASTDeclWriter::VisitCapturedDecl().
unsigned clang::CapturedDecl::getNumParams | ( | ) | const [inline] |
Definition at line 3538 of file Decl.h.
Referenced by clang::ASTDeclWriter::VisitCapturedDecl().
ImplicitParamDecl* clang::CapturedDecl::getParam | ( | unsigned | i | ) | const [inline] |
Definition at line 3540 of file Decl.h.
Referenced by clang::ASTDeclWriter::VisitCapturedDecl().
bool clang::CapturedDecl::isNothrow | ( | ) | const [inline] |
Definition at line 3535 of file Decl.h.
Referenced by clang::ASTDeclWriter::VisitCapturedDecl().
param_iterator clang::CapturedDecl::param_begin | ( | ) | const [inline] |
Retrieve an iterator pointing to the first parameter decl.
Definition at line 3565 of file Decl.h.
Referenced by clang::CodeGen::CodeGenFunction::GenerateCapturedStmtFunction().
param_iterator clang::CapturedDecl::param_end | ( | ) | const [inline] |
Retrieve an iterator one past the last parameter decl.
Definition at line 3567 of file Decl.h.
Referenced by clang::CodeGen::CodeGenFunction::GenerateCapturedStmtFunction().
param_range clang::CapturedDecl::params | ( | ) | const [inline] |
void clang::CapturedDecl::setBody | ( | Stmt * | B | ) | [inline] |
Definition at line 3533 of file Decl.h.
Referenced by clang::Sema::ActOnCapturedRegionEnd().
void clang::CapturedDecl::setContextParam | ( | unsigned | i, |
ImplicitParamDecl * | P | ||
) | [inline] |
Definition at line 3554 of file Decl.h.
Referenced by clang::Sema::ActOnCapturedRegionStart(), and clang::ASTDeclReader::VisitCapturedDecl().
void clang::CapturedDecl::setNothrow | ( | bool | Nothrow = true | ) | [inline] |
Definition at line 3536 of file Decl.h.
Referenced by clang::Sema::ActOnOpenMPParallelDirective(), clang::Sema::ActOnOpenMPParallelForDirective(), clang::Sema::ActOnOpenMPParallelForSimdDirective(), clang::Sema::ActOnOpenMPTaskDirective(), clang::Sema::ActOnOpenMPTeamsDirective(), and clang::ASTDeclReader::VisitCapturedDecl().
void clang::CapturedDecl::setParam | ( | unsigned | i, |
ImplicitParamDecl * | P | ||
) | [inline] |
Definition at line 3544 of file Decl.h.
References P.
Referenced by clang::Sema::ActOnCapturedRegionStart(), and clang::ASTDeclReader::VisitCapturedDecl().
friend class ASTDeclReader [friend] |
Reimplemented from clang::Decl.
friend class ASTDeclWriter [friend] |
Reimplemented from clang::Decl.