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:

Inherited from OMPClause:

Methods

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

Description

Build an empty clause.

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

clang::OMPClause::child_range children()

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

clang::OMPClause::const_child_range children()
    const

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

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

Description

Returns condition.

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

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

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

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)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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