class OMPDetachClause
Declaration
class OMPDetachClause : public OMPClause { /* full declaration omitted */ };
Description
This represents 'detach' clause in the '#pragma omp task' directive. In this example directive '#pragma omp detach' has simple 'detach' clause with the variable 'evt'.
Declared at: clang/include/clang/AST/OpenMPClause.h:8142
Inherits from: OMPClause
Member Variables
- private clang::SourceLocation LParenLoc
- Location of '('.
- private clang::Stmt* Evt = nullptr
- Expression of the 'detach' clause.
Method Overview
- public OMPDetachClause(clang::Expr * Evt, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
- public OMPDetachClause()
- 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 * getEventHandler() const
- public clang::SourceLocation getLParenLoc() const
- private void setEventHandler(clang::Expr * E)
- private void setLParenLoc(clang::SourceLocation Loc)
- public clang::OMPClause::child_range used_children()
- public clang::OMPClause::const_child_range used_children() const
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
¶OMPDetachClause(clang::Expr* Evt,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
OMPDetachClause(clang::Expr* Evt,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
Description
Build 'detach' clause with event-handler \a Evt.
Declared at: clang/include/clang/AST/OpenMPClause.h:8164
Parameters
- clang::Expr* Evt
- Event handler expression.
- clang::SourceLocation StartLoc
- Starting location of the clause.
- clang::SourceLocation LParenLoc
- Location of '('.
- clang::SourceLocation EndLoc
- Ending location of the clause.
¶OMPDetachClause()
OMPDetachClause()
Description
Build an empty clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:8170
¶clang::OMPClause::child_range children()
clang::OMPClause::child_range children()
Declared at: clang/include/clang/AST/OpenMPClause.h:8179
¶clang::OMPClause::const_child_range children()
const
clang::OMPClause::const_child_range children()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:8181
¶static bool classof(const clang::OMPClause* T)
static bool classof(const clang::OMPClause* T)
Declared at: clang/include/clang/AST/OpenMPClause.h:8192
Parameters
- const clang::OMPClause* T
¶clang::Expr* getEventHandler() const
clang::Expr* getEventHandler() const
Description
Returns event-handler expression.
Declared at: clang/include/clang/AST/OpenMPClause.h:8177
¶clang::SourceLocation getLParenLoc() const
clang::SourceLocation getLParenLoc() const
Description
Returns the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:8174
¶void setEventHandler(clang::Expr* E)
void setEventHandler(clang::Expr* E)
Description
Set condition.
Declared at: clang/include/clang/AST/OpenMPClause.h:8152
Parameters
- clang::Expr* E
¶void setLParenLoc(clang::SourceLocation Loc)
void setLParenLoc(clang::SourceLocation Loc)
Description
Sets the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:8155
Parameters
¶clang::OMPClause::child_range used_children()
clang::OMPClause::child_range used_children()
Declared at: clang/include/clang/AST/OpenMPClause.h:8185
¶clang::OMPClause::const_child_range
used_children() const
clang::OMPClause::const_child_range
used_children() const
Declared at: clang/include/clang/AST/OpenMPClause.h:8188