class OMPPartialClause

Declaration

class OMPPartialClause : public OMPClause { /* full declaration omitted */ };

Description

Representation of the 'partial' clause of the '#pragma omp unroll' directive.

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

Inherits from: OMPClause

Member Variables

private clang::SourceLocation LParenLoc
Location of '('.
private clang::Stmt* Factor
Optional argument to the clause (unroll factor).

Method Overview

  • public static clang::OMPPartialClause * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc, clang::Expr * Factor)
  • public static clang::OMPPartialClause * CreateEmpty(const clang::ASTContext & C)
  • private OMPPartialClause()
  • 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 * getFactor() const
  • public clang::SourceLocation getLParenLoc() const
  • private void setFactor(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:

Methods

static clang::OMPPartialClause* Create(
    const clang::ASTContext& C,
    clang::SourceLocation StartLoc,
    clang::SourceLocation LParenLoc,
    clang::SourceLocation EndLoc,
    clang::Expr* Factor)

Description

Build an AST node for a 'partial' clause.

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

Parameters

const clang::ASTContext& C
Context of the AST.
clang::SourceLocation StartLoc
Location of the 'partial' identifier.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Location of ')'.
clang::Expr* Factor
Clause argument.

static clang::OMPPartialClause* CreateEmpty(
    const clang::ASTContext& C)

Description

Build an empty 'partial' AST node for deserialization.

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

Parameters

const clang::ASTContext& C
Context of the AST.

OMPPartialClause()

Description

Build an empty clause.

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

clang::OMPClause::child_range children()

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

clang::OMPClause::const_child_range children()
    const

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

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

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

Parameters

const clang::OMPClause* T

clang::Expr* getFactor() const

Description

Returns the argument of the clause or nullptr if not set.

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

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

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

void setFactor(clang::Expr* E)

Description

Set the unroll factor.

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

Parameters

clang::Expr* E

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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