class OMPPriorityClause
Declaration
class OMPPriorityClause : public OMPClause,
public OMPClauseWithPreInit { /* full declaration omitted */ };
Description
This represents 'priority' clause in the '#pragma omp ...' directive. In this example directive '#pragma omp teams' has clause 'priority' with single expression 'n'.
Declared at: clang/include/clang/AST/OpenMPClause.h:6119
Inherits from: OMPClause, OMPClauseWithPreInit
Member Variables
- private clang::SourceLocation LParenLoc
- Location of '('.
- private clang::Stmt* Priority = nullptr
- Priority number.
Method Overview
- public OMPPriorityClause(clang::Expr * Priority, clang::Stmt * HelperPriority, clang::OpenMPDirectiveKind CaptureRegion, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
- public OMPPriorityClause()
- public clang::OMPClause::child_range children()
- public clang::OMPClause::const_child_range children() const
- public static bool classof(const clang::OMPClause * T)
- public clang::SourceLocation getLParenLoc() const
- public clang::Expr * getPriority()
- public clang::Expr * getPriority() const
- public void setLParenLoc(clang::SourceLocation Loc)
- private void setPriority(clang::Expr * E)
- 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
¶OMPPriorityClause(
clang::Expr* Priority,
clang::Stmt* HelperPriority,
clang::OpenMPDirectiveKind CaptureRegion,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
OMPPriorityClause(
clang::Expr* Priority,
clang::Stmt* HelperPriority,
clang::OpenMPDirectiveKind CaptureRegion,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
Description
Build 'priority' clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:6143
Parameters
- clang::Expr* Priority
- Expression associated with this clause.
- clang::Stmt* HelperPriority
- Helper priority 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.
¶OMPPriorityClause()
OMPPriorityClause()
Description
Build an empty clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:6152
¶clang::OMPClause::child_range children()
clang::OMPClause::child_range children()
Declared at: clang/include/clang/AST/OpenMPClause.h:6168
¶clang::OMPClause::const_child_range children()
const
clang::OMPClause::const_child_range children()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:6170
¶static bool classof(const clang::OMPClause* T)
static bool classof(const clang::OMPClause* T)
Declared at: clang/include/clang/AST/OpenMPClause.h:6180
Parameters
- const clang::OMPClause* T
¶clang::SourceLocation getLParenLoc() const
clang::SourceLocation getLParenLoc() const
Description
Returns the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:6160
¶clang::Expr* getPriority()
clang::Expr* getPriority()
Description
Return Priority number.
Declared at: clang/include/clang/AST/OpenMPClause.h:6163
¶clang::Expr* getPriority() const
clang::Expr* getPriority() const
Description
Return Priority number.
Declared at: clang/include/clang/AST/OpenMPClause.h:6166
¶void setLParenLoc(clang::SourceLocation Loc)
void setLParenLoc(clang::SourceLocation Loc)
Description
Sets the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:6157
Parameters
¶void setPriority(clang::Expr* E)
void setPriority(clang::Expr* E)
Description
Set the Priority number.
Declared at: clang/include/clang/AST/OpenMPClause.h:6131
Parameters
- clang::Expr* E
- Priority number.
¶clang::OMPClause::child_range used_children()
clang::OMPClause::child_range used_children()
Declared at: clang/include/clang/AST/OpenMPClause.h:6174
¶clang::OMPClause::const_child_range
used_children() const
clang::OMPClause::const_child_range
used_children() const
Declared at: clang/include/clang/AST/OpenMPClause.h:6175