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

Inherited from OMPClause:

Methods

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()

Description

Build an empty clause.

Declared at: clang/include/clang/AST/OpenMPClause.h:8170

clang::OMPClause::child_range children()

Declared at: clang/include/clang/AST/OpenMPClause.h:8179

clang::OMPClause::const_child_range children()
    const

Declared at: clang/include/clang/AST/OpenMPClause.h:8181

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

Description

Returns event-handler expression.

Declared at: clang/include/clang/AST/OpenMPClause.h:8177

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

Declared at: clang/include/clang/AST/OpenMPClause.h:8174

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)

Description

Sets the location of '('.

Declared at: clang/include/clang/AST/OpenMPClause.h:8155

Parameters

clang::SourceLocation Loc

clang::OMPClause::child_range used_children()

Declared at: clang/include/clang/AST/OpenMPClause.h:8185

clang::OMPClause::const_child_range
used_children() const

Declared at: clang/include/clang/AST/OpenMPClause.h:8188