class OMPFinalClause

Declaration

class OMPFinalClause : public OMPClause, public OMPClauseWithPreInit { /* full declaration omitted */ };

Description

This represents 'final' clause in the '#pragma omp ...' directive. In this example directive '#pragma omp task' has simple 'final' clause with condition 'a > 5'.

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

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 OMPFinalClause(clang::Expr * Cond, clang::Stmt * HelperCond, clang::OpenMPDirectiveKind CaptureRegion, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
  • public OMPFinalClause()
  • 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)
  • public 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

OMPFinalClause(
    clang::Expr* Cond,
    clang::Stmt* HelperCond,
    clang::OpenMPDirectiveKind CaptureRegion,
    clang::SourceLocation StartLoc,
    clang::SourceLocation LParenLoc,
    clang::SourceLocation EndLoc)

Description

Build 'final' clause with condition \a Cond.

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

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.

OMPFinalClause()

Description

Build an empty clause.

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

clang::OMPClause::child_range children()

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

clang::OMPClause::const_child_range children()
    const

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

static bool classof(const clang::OMPClause* T)

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

Parameters

const clang::OMPClause* T

clang::Expr* getCondition() const

Description

Returns condition.

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

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

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

void setCondition(clang::Expr* Cond)

Description

Set condition.

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

Parameters

clang::Expr* Cond

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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