class OMPHintClause

Declaration

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

Description

This represents 'hint' clause in the '#pragma omp ...' directive. In this example directive '#pragma omp critical' has name 'name' and clause 'hint' with argument '6'.

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

Inherits from: OMPClause

Member Variables

private clang::SourceLocation LParenLoc
Location of '('.
private clang::Stmt* Hint = nullptr
Hint expression of the 'hint' clause.

Method Overview

  • public OMPHintClause(clang::Expr * Hint, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
  • public OMPHintClause()
  • 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 * getHint() const
  • public clang::SourceLocation getLParenLoc() const
  • private void setHint(clang::Expr * H)
  • public 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

OMPHintClause(clang::Expr* Hint,
              clang::SourceLocation StartLoc,
              clang::SourceLocation LParenLoc,
              clang::SourceLocation EndLoc)

Description

Build 'hint' clause with expression \a Hint.

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

Parameters

clang::Expr* Hint
Hint expression.
clang::SourceLocation StartLoc
Starting location of the clause.
clang::SourceLocation LParenLoc
Location of '('.
clang::SourceLocation EndLoc
Ending location of the clause.

OMPHintClause()

Description

Build an empty clause.

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

clang::OMPClause::child_range children()

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

clang::OMPClause::const_child_range children()
    const

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

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

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

Parameters

const clang::OMPClause* T

clang::Expr* getHint() const

Description

Returns number of threads.

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

clang::SourceLocation getLParenLoc() const

Description

Returns the location of '('.

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

void setHint(clang::Expr* H)

Description

Set hint expression.

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

Parameters

clang::Expr* H

void setLParenLoc(clang::SourceLocation Loc)

Description

Sets the location of '('.

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

Parameters

clang::SourceLocation Loc

clang::OMPClause::child_range used_children()

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

clang::OMPClause::const_child_range
used_children() const

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