class OMPNocontextClause
Declaration
class OMPNocontextClause : public OMPClause,
public OMPClauseWithPreInit { /* full declaration omitted */ };
Description
This represents 'nocontext' clause in the '#pragma omp ...' directive. In this example directive '#pragma omp dispatch' has simple 'nocontext' clause with condition 'a > 5'.
Declared at: clang/include/clang/AST/OpenMPClause.h:8073
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 OMPNocontextClause(clang::Expr * Cond, clang::Stmt * HelperCond, clang::OpenMPDirectiveKind CaptureRegion, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
- public OMPNocontextClause()
- 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)
- private 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
¶OMPNocontextClause(
clang::Expr* Cond,
clang::Stmt* HelperCond,
clang::OpenMPDirectiveKind CaptureRegion,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
OMPNocontextClause(
clang::Expr* Cond,
clang::Stmt* HelperCond,
clang::OpenMPDirectiveKind CaptureRegion,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
Description
Build 'nocontext' clause with condition \a Cond.
Declared at: clang/include/clang/AST/OpenMPClause.h:8098
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.
¶OMPNocontextClause()
OMPNocontextClause()
Description
Build an empty clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:8107
¶clang::OMPClause::child_range children()
clang::OMPClause::child_range children()
Declared at: clang/include/clang/AST/OpenMPClause.h:8118
¶clang::OMPClause::const_child_range children()
const
clang::OMPClause::const_child_range children()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:8120
¶static bool classof(const clang::OMPClause* T)
static bool classof(const clang::OMPClause* T)
Declared at: clang/include/clang/AST/OpenMPClause.h:8130
Parameters
- const clang::OMPClause* T
¶clang::Expr* getCondition() const
clang::Expr* getCondition() const
Description
Returns condition.
Declared at: clang/include/clang/AST/OpenMPClause.h:8116
¶clang::SourceLocation getLParenLoc() const
clang::SourceLocation getLParenLoc() const
Description
Returns the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:8113
¶void setCondition(clang::Expr* Cond)
void setCondition(clang::Expr* Cond)
Description
Set condition.
Declared at: clang/include/clang/AST/OpenMPClause.h:8083
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:8086
Parameters
¶clang::OMPClause::child_range used_children()
clang::OMPClause::child_range used_children()
Declared at: clang/include/clang/AST/OpenMPClause.h:8124
¶clang::OMPClause::const_child_range
used_children() const
clang::OMPClause::const_child_range
used_children() const
Declared at: clang/include/clang/AST/OpenMPClause.h:8125