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:
- public children
- public children
- public classof
- public getBeginLoc
- public getClauseKind
- public getEndLoc
- public isImplicit
- public setLocEnd
- public setLocStart
- public used_children
- public used_children
Methods
¶OMPHintClause(clang::Expr* Hint,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
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()
OMPHintClause()
Description
Build an empty clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:6395
¶clang::OMPClause::child_range children()
clang::OMPClause::child_range children()
Declared at: clang/include/clang/AST/OpenMPClause.h:6407
¶clang::OMPClause::const_child_range children()
const
clang::OMPClause::const_child_range children()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:6409
¶static bool classof(const clang::OMPClause* T)
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
clang::Expr* getHint() const
Description
Returns number of threads.
Declared at: clang/include/clang/AST/OpenMPClause.h:6405
¶clang::SourceLocation getLParenLoc() const
clang::SourceLocation getLParenLoc() const
Description
Returns the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:6402
¶void setHint(clang::Expr* H)
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)
void setLParenLoc(clang::SourceLocation Loc)
Description
Sets the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:6399
Parameters
¶clang::OMPClause::child_range used_children()
clang::OMPClause::child_range used_children()
Declared at: clang/include/clang/AST/OpenMPClause.h:6413
¶clang::OMPClause::const_child_range
used_children() const
clang::OMPClause::const_child_range
used_children() const
Declared at: clang/include/clang/AST/OpenMPClause.h:6416