class OMPUseClause

Declaration

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

Description

This represents the 'use' clause in '#pragma omp ...' directives.

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

Inherits from: OMPClause

Member Variables

private clang::SourceLocation LParenLoc
Location of '('.
private clang::SourceLocation VarLoc
Location of interop variable.
private clang::Stmt* InteropVar = nullptr
The interop variable.

Method Overview

  • public OMPUseClause(clang::Expr * InteropVar, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation VarLoc, clang::SourceLocation EndLoc)
  • public OMPUseClause()
  • 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 * getInteropVar() const
  • public clang::SourceLocation getLParenLoc() const
  • public clang::SourceLocation getVarLoc() const
  • private void setInteropVar(clang::Expr * E)
  • private void setLParenLoc(clang::SourceLocation Loc)
  • private void setVarLoc(clang::SourceLocation Loc)
  • public clang::OMPClause::child_range used_children()
  • public clang::OMPClause::const_child_range used_children() const

Inherited from OMPClause:

Methods

OMPUseClause(clang::Expr* InteropVar,
             clang::SourceLocation StartLoc,
             clang::SourceLocation LParenLoc,
             clang::SourceLocation VarLoc,
             clang::SourceLocation EndLoc)

Description

Build 'use' clause with and interop variable expression \a InteropVar.

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

Parameters

clang::Expr* InteropVar
The interop variable.
clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation VarLoc
Location of the interop variable.
clang::SourceLocation EndLoc
Ending location of the clause.

OMPUseClause()

Description

Build an empty clause.

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

clang::OMPClause::child_range children()

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

clang::OMPClause::const_child_range children()
    const

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

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

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

Parameters

const clang::OMPClause* T

clang::Expr* getInteropVar() const

Description

Returns the interop variable.

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

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

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

clang::SourceLocation getVarLoc() const

Description

Returns the location of the interop variable.

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

void setInteropVar(clang::Expr* E)

Description

Set the interop variable.

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

Parameters

clang::Expr* E

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc

void setVarLoc(clang::SourceLocation Loc)

Description

Sets the location of the interop variable.

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

Parameters

clang::SourceLocation Loc

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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