class OMPFinalClause
Declaration
class OMPFinalClause : public OMPClause, public OMPClauseWithPreInit { /* full declaration omitted */ };
Description
This represents 'final' clause in the '#pragma omp ...' directive. In this example directive '#pragma omp task' has simple 'final' clause with condition 'a > 5'.
Declared at: clang/include/clang/AST/OpenMPClause.h:606
Inherits from: OMPClause, OMPClauseWithPreInit
Member Variables
- private clang::SourceLocation LParenLoc
- Location of '('.
- private clang::Stmt* Condition = nullptr
- Condition of the 'if' clause.
Method Overview
- public OMPFinalClause(clang::Expr * Cond, clang::Stmt * HelperCond, clang::OpenMPDirectiveKind CaptureRegion, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
- public OMPFinalClause()
- public clang::OMPClause::child_range children()
- public clang::OMPClause::const_child_range children() const
- public static bool classof(const clang::OMPClause * T)
- public clang::Expr * getCondition() const
- public clang::SourceLocation getLParenLoc() const
- private void setCondition(clang::Expr * Cond)
- public void setLParenLoc(clang::SourceLocation Loc)
- public clang::OMPClause::child_range used_children()
- public clang::OMPClause::const_child_range used_children() const
Inherited from OMPClauseWithPreInit:
- public get
- public get
- public getCaptureRegion
- public getPreInitStmt
- public getPreInitStmt
- protected setPreInitStmt
Inherited from OMPClause:
- public children
- public children
- public classof
- public getBeginLoc
- public getClauseKind
- public getEndLoc
- public isImplicit
- public setLocEnd
- public setLocStart
- public used_children
- public used_children
Methods
¶OMPFinalClause(
clang::Expr* Cond,
clang::Stmt* HelperCond,
clang::OpenMPDirectiveKind CaptureRegion,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
OMPFinalClause(
clang::Expr* Cond,
clang::Stmt* HelperCond,
clang::OpenMPDirectiveKind CaptureRegion,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
Description
Build 'final' clause with condition \a Cond.
Declared at: clang/include/clang/AST/OpenMPClause.h:628
Parameters
- clang::Expr* Cond
- Condition of the clause.
- clang::Stmt* HelperCond
- Helper condition for the construct.
- clang::OpenMPDirectiveKind CaptureRegion
- Innermost OpenMP region where expressions in this clause must be captured.
- clang::SourceLocation StartLoc
- Starting location of the clause.
- clang::SourceLocation LParenLoc
- Location of '('.
- clang::SourceLocation EndLoc
- Ending location of the clause.
¶OMPFinalClause()
OMPFinalClause()
Description
Build an empty clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:637
¶clang::OMPClause::child_range children()
clang::OMPClause::child_range children()
Declared at: clang/include/clang/AST/OpenMPClause.h:650
¶clang::OMPClause::const_child_range children()
const
clang::OMPClause::const_child_range children()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:652
¶static bool classof(const clang::OMPClause* T)
static bool classof(const clang::OMPClause* T)
Declared at: clang/include/clang/AST/OpenMPClause.h:662
Parameters
- const clang::OMPClause* T
¶clang::Expr* getCondition() const
clang::Expr* getCondition() const
Description
Returns condition.
Declared at: clang/include/clang/AST/OpenMPClause.h:648
¶clang::SourceLocation getLParenLoc() const
clang::SourceLocation getLParenLoc() const
Description
Returns the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:645
¶void setCondition(clang::Expr* Cond)
void setCondition(clang::Expr* Cond)
Description
Set condition.
Declared at: clang/include/clang/AST/OpenMPClause.h:616
Parameters
- clang::Expr* Cond
¶void setLParenLoc(clang::SourceLocation Loc)
void setLParenLoc(clang::SourceLocation Loc)
Description
Sets the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:642
Parameters
¶clang::OMPClause::child_range used_children()
clang::OMPClause::child_range used_children()
Declared at: clang/include/clang/AST/OpenMPClause.h:656
¶clang::OMPClause::const_child_range
used_children() const
clang::OMPClause::const_child_range
used_children() const
Declared at: clang/include/clang/AST/OpenMPClause.h:657